mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Assert successful return of PR_WaitCondVar, bug 785201. r=sstangl
This commit is contained in:
parent
32f5451274
commit
fe7611778d
@ -191,8 +191,10 @@ WorkerThreadState::wait(CondVar which, uint32_t millis)
|
||||
#ifdef DEBUG
|
||||
lockOwner = NULL;
|
||||
#endif
|
||||
PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup,
|
||||
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT);
|
||||
DebugOnly<PRStatus> status =
|
||||
PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup,
|
||||
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT);
|
||||
JS_ASSERT(status == PR_SUCCESS);
|
||||
#ifdef DEBUG
|
||||
lockOwner = PR_GetCurrentThread();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user