Searched refs:theLocker (Results 1 - 11 of 11) sorted by relevance

/haiku/src/tests/kits/support/blocker/
H A DLockerTestCase.h28 // SafetyLock mySafetyLock(theLocker);
34 BLocker *theLocker; member in class:SafetyLock
37 SafetyLock(BLocker *aLock) {theLocker = aLock;};
38 virtual ~SafetyLock() {if (theLocker != NULL) theLocker->Unlock(); };
45 // derived class. This BLocker is the member "theLocker". Also,
53 BLocker *theLocker; member in class:LockerTestCase
H A DLockerTestCase.cpp22 BThreadedTestCase(name), theLocker(new BLocker(isBenaphore))
36 delete theLocker;
37 theLocker = NULL;
57 bool isLocked = theLocker->IsLocked();
58 thread_id actualThread = theLocker->LockingThread();
60 int32 actualCount = theLocker->CountLocks();
H A DSemaphoreLockCountTest1.cpp69 int actual = theLocker->CountLockRequests();
89 SafetyLock theSafetyLock1(theLocker);
99 CPPUNIT_ASSERT(theLocker->Lock());
115 theLocker->Unlock();
133 SafetyLock theSafetyLock1(theLocker);
140 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
141 CPPUNIT_ASSERT(theLocker->Lock());
142 int actual = theLocker->CountLockRequests();
144 theLocker->Unlock();
160 SafetyLock theSafetyLock1(theLocker);
[all...]
H A DBenaphoreLockCountTest1.cpp73 int actual = theLocker->CountLockRequests();
93 SafetyLock theSafetyLock1(theLocker);
104 CPPUNIT_ASSERT(theLocker->Lock());
124 theLocker->Unlock();
145 SafetyLock theSafetyLock1(theLocker);
152 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
154 CPPUNIT_ASSERT(theLocker->Lock());
156 int actual = theLocker->CountLockRequests();
160 theLocker->Unlock();
177 SafetyLock theSafetyLock1(theLocker);
[all...]
H A DConcurrencyTest2.cpp118 SafetyLock theSafetyLock(theLocker);
120 CPPUNIT_ASSERT(theLocker->Lock());
124 theLocker->Unlock();
137 * a plain Lock() on theLocker. This is done to get coverage of
153 result = (theLocker->LockWithTimeout(1000000) == B_OK);
155 result = theLocker->Lock();
170 SafetyLock theSafetyLock(theLocker);
174 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME/10) == B_TIMED_OUT);
208 SafetyLock theSafetyLock(theLocker);
221 theLocker
[all...]
H A DDestructionTest2.cpp68 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME) == B_OK);
72 theLocker->Unlock();
76 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME * 10) == B_BAD_SEM_ID);
96 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
98 CPPUNIT_ASSERT(theLocker->LockWithTimeout(SNOOZE_TIME * 10) == B_OK);
104 tmpLock = theLocker;
105 theLocker = NULL;
H A DDestructionTest1.cpp66 CPPUNIT_ASSERT(theLocker->Lock());
70 theLocker->Unlock();
74 CPPUNIT_ASSERT(!theLocker->Lock());
92 CPPUNIT_ASSERT(theLocker->Lock());
98 tmpLock = theLocker;
100 theLocker = NULL;
H A DConcurrencyTest1.cpp110 * a plain Lock() on theLocker. This is done to get coverage of
126 result = (theLocker->LockWithTimeout(1000000) == B_OK);
128 result = theLocker->Lock();
161 SafetyLock theSafetyLock(theLocker);
178 theLocker->Unlock();
183 theLocker->Unlock();
H A DConstructionTest1.cpp103 CPPUNIT_ASSERT(NameMatches("some BLocker", theLocker));
104 CPPUNIT_ASSERT(IsBenaphore(theLocker));
/haiku/src/tests/kits/support/bautolock/
H A DAutolockLockerTest.cpp27 BThreadedTestCase(name), theLocker(new BLocker)
41 delete theLocker;
42 theLocker = NULL;
63 CPPUNIT_ASSERT(theLocker->Lock());
64 CPPUNIT_ASSERT(theLocker->LockingThread() == find_thread(NULL));
66 delete theLocker;
69 theLocker = new BLocker;
70 theAutolock = new BAutolock(theLocker);
72 CPPUNIT_ASSERT(theLocker->IsLocked());
73 CPPUNIT_ASSERT(theLocker
[all...]
H A DAutolockLockerTest.h22 BLocker *theLocker; member in class:AutolockLockerTest

Completed in 101 milliseconds