xref: /haiku/src/tests/kits/support/blocker/ConcurrencyTest2.h (revision 002f37b0cca92e4cf72857c72ac95db5a8b09615)
1 /*
2 	$Id: ConcurrencyTest2.h 301 2002-07-18 05:32:00Z tylerdauwalder $
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 
17 class ConcurrencyTest2 : public LockerTestCase {
18 private:
19 	bool lockTestValue;
20 
21 	void TestThread(void);
22 	bool AcquireLock(int, bool);
23 	void LockingLoop(void);
24 
25 public:
26 	ConcurrencyTest2(std::string, bool);
27 	virtual ~ConcurrencyTest2();
28 	void setUp(void);
29 	void AcquireThread(void);
30 	void TimeoutThread(void);
31 	static CppUnit::Test *suite(void);
32 };
33 
34 
35 #endif
36