LockWithTimeout
status_t LockWithTimeout(bigtime_t timeout);
status_t LockWithTimeout(bigtime_t timeout);
status_t LockWithTimeout(bigtime_t timeout);
while (!LockWithTimeout(10000)) {
if (!LockWithTimeout(10000)) {
return fLocker->LockWithTimeout(timeout) == B_OK;
bool LockWithTimeout(bigtime_t timeout);
if (B_OK != fLocker->LockWithTimeout(200000))
if (!l || l->LockWithTimeout(500000) != B_OK)
status_t err = m_lock.LockWithTimeout(timeout);
status_t err = LockWithTimeout(timeout);
return m_lock.LockWithTimeout(timeout) == B_OK;
if (teamMenu->Window()->LockWithTimeout(50000) == B_OK) {
if (fLock.LockWithTimeout(LOCK_TIMEOUT_MICROS) != B_OK) {
if (fScreenshotWindow->LockWithTimeout(1000) != B_OK)
if (LockWithTimeout(5000) != B_OK)
if (fManager->LockWithTimeout(10000) == B_OK) {
status_t err = fManager->LockWithTimeout(10000);
status_t error = fPlaybackManager->LockWithTimeout(10000);
if (Window()->LockWithTimeout(5000) == B_OK) {
if (Window()->LockWithTimeout(5000) == B_OK) {
if (MyAppPntr->LockWithTimeout (100000) != B_OK)
if (MyAppPntr == NULL || MyAppPntr->LockWithTimeout (100000) != B_OK)
if (MyAppPntr == NULL || MyAppPntr->LockWithTimeout (2000000) != B_OK)
status_t status = looper->LockWithTimeout(timeout);
status_t result = looper->LockWithTimeout(timeout);
status_t LockWithTimeout(bigtime_t);
} else if (fWindow->LockWithTimeout(5000LL) == B_OK) {
if (fLock.LockWithTimeout(30000) != B_OK) {
status_t status = fDirectScreenLock.LockWithTimeout(1000000L);
status_t status = fDirectScreenLock.LockWithTimeout(1000000L);
if (fUpdateLock.LockWithTimeout(2000LL) >= B_OK) {
if (LockWithTimeout(1000000) >= B_OK) {
if (LockWithTimeout(kIconAnimateInterval / lastHeight) != B_OK)
if (window->LockWithTimeout(200000) == B_OK) {
if (LockWithTimeout(timeout) != B_OK)
if (LockWithTimeout(timeout) == B_OK) {
if (LockWithTimeout(200000) == B_OK) {
if (LockWithTimeout(200000) == B_OK) {
if (LockWithTimeout(200000) == B_OK) {
if (w->LockWithTimeout(200000) == B_OK) {
if (LockWithTimeout(200000) != B_OK)
return fLocker->LockWithTimeout(1000000) == B_OK;
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME) == B_OK);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME * 10) == B_BAD_SEM_ID);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME * 10) == B_OK);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);
CPPUNIT_ASSERT(fLocker->LockWithTimeout(SNOOZE_TIME / 10) == B_TIMED_OUT);