xref: /haiku/src/tests/kits/support/blocker/BenaphoreLockCountTest1.h (revision 52a380120846174213ccce9c4aab0dda17c72083)
1 /*
2 	$Id: BenaphoreLockCountTest1.h,v 1.1 2002/07/09 12:24:58 ejakowatz Exp $
3 
4 	This file defines a classes for performing one test of BLocker
5 	functionality.
6 
7 	*/
8 
9 
10 #ifndef BenaphoreLockCountTest1_H
11 #define BenaphoreLockCountTest1_H
12 
13 
14 #include "LockerTestCase.h"
15 #include "ThreadedTestCaller.h"
16 
17 
18 template<class Locker> class BenaphoreLockCountTest1 :
19 	public LockerTestCase<Locker> {
20 
21 private:
22 	typedef ThreadedTestCaller <BenaphoreLockCountTest1<Locker> >
23 		BenaphoreLockCountTest1Caller;
24 
25 	Locker thread2Lock;
26 	Locker thread3Lock;
27 
28 	bool CheckLockRequests(int);
29 
30 protected:
31 
32 public:
33 	void TestThread1(void);
34 	void TestThread2(void);
35 	void TestThread3(void);
36 	BenaphoreLockCountTest1(std::string);
37 	virtual ~BenaphoreLockCountTest1();
38 	static Test *suite(void);
39 	};
40 
41 #endif