xref: /haiku/src/tests/kits/support/blocker/BenaphoreLockCountTest1.h (revision 1e36cfc2721ef13a187c6f7354dc9cbc485e89d3)
1 /*
2 	$Id: BenaphoreLockCountTest1.h,v 1.2 2002/07/18 05:32:00 tylerdauwalder 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 <string>
16 
17 class CppUnit::Test;
18 
19 class BenaphoreLockCountTest1 : public LockerTestCase {
20 private:
21 	BLocker thread2Lock;
22 	BLocker thread3Lock;
23 
24 	bool CheckLockRequests(int);
25 
26 protected:
27 
28 public:
29 	void TestThread1(void);
30 	void TestThread2(void);
31 	void TestThread3(void);
32 	BenaphoreLockCountTest1(std::string);
33 	virtual ~BenaphoreLockCountTest1();
34 	static CppUnit::Test *suite(void);
35 };
36 
37 #endif
38 
39 
40 
41