xref: /haiku/src/tests/kits/support/blocker/ConcurrencyTest2.h (revision 2f470aec1c92ce6917b8a903e343795dc77af41f)
1 /*
2 	$Id: ConcurrencyTest2.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 ConcurrencyTest2_H
11 #define ConcurrencyTest2_H
12 
13 
14 #include "LockerTestCase.h"
15 
16 class CppUnit::Test;
17 
18 class ConcurrencyTest2 : public LockerTestCase {
19 
20 private:
21 	bool lockTestValue;
22 
23 	void TestThread(void);
24 	bool AcquireLock(int, bool);
25 	void LockingLoop(void);
26 
27 public:
28 	ConcurrencyTest2(std::string, bool);
29 	virtual ~ConcurrencyTest2();
30 	void setUp(void);
31 	void AcquireThread(void);
32 	void TimeoutThread(void);
33 	static CppUnit::Test *suite(void);
34 	};
35 
36 #endif
37 
38 
39 
40