Searched refs:SafetyLock (Results 1 - 8 of 8) sorted by relevance

/haiku-fatelf/src/tests/kits/support/blocker/
H A DLockerTestCase.h19 // The SafetyLock class is a utility class for use in actual tests
22 // lock will be released. Without this SafetyLock, there could be
28 // SafetyLock mySafetyLock(theLocker);
32 class SafetyLock { class
37 SafetyLock(BLocker *aLock) {theLocker = aLock;}; function in class:SafetyLock
38 virtual ~SafetyLock() {if (theLocker != NULL) theLocker->Unlock(); };
H A DSemaphoreLockCountTest1.cpp89 SafetyLock theSafetyLock1(theLocker);
90 SafetyLock theSafetyLock2(&thread2Lock);
91 SafetyLock theSafetyLock3(&thread3Lock);
133 SafetyLock theSafetyLock1(theLocker);
160 SafetyLock theSafetyLock1(theLocker);
H A DBenaphoreLockCountTest1.cpp93 SafetyLock theSafetyLock1(theLocker);
94 SafetyLock theSafetyLock2(&thread2Lock);
95 SafetyLock theSafetyLock3(&thread3Lock);
145 SafetyLock theSafetyLock1(theLocker);
177 SafetyLock theSafetyLock1(theLocker);
H A DConcurrencyTest2.cpp118 SafetyLock theSafetyLock(theLocker);
170 SafetyLock theSafetyLock(theLocker);
185 * SafetyLock class (see LockerTestCase.h) is used to make sure that
208 SafetyLock theSafetyLock(theLocker);
H A DConcurrencyTest1.cpp138 * SafetyLock class (see LockerTestCase.h) is used to make sure that
161 SafetyLock theSafetyLock(theLocker);
/haiku-fatelf/src/tests/kits/app/bmessagequeue/
H A DMessageQueueTestCase.h22 // The SafetyLock class is a utility class for use in actual tests
25 // queue, that lock will be released. Without this SafetyLock, there
31 // SafetyLock mySafetyLock(theMessageQueue);
35 class SafetyLock { class
40 SafetyLock(BMessageQueue *aMessageQueue) {theMessageQueue = aMessageQueue;} function in class:SafetyLock
41 virtual ~SafetyLock() {if (theMessageQueue != NULL) theMessageQueue->Unlock(); };
H A DMessageQueueTestCase.cpp36 SafetyLock theSafetyLock(theMessageQueue);
73 SafetyLock theSafetyLock(theMessageQueue);
H A DConcurrencyTest2.cpp220 SafetyLock mySafetyLock(theMessageQueue);

Completed in 80 milliseconds