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
|
#ifdef DEBUG
|
||||||
lockOwner = NULL;
|
lockOwner = NULL;
|
||||||
#endif
|
#endif
|
||||||
PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup,
|
DebugOnly<PRStatus> status =
|
||||||
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT);
|
PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup,
|
||||||
|
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT);
|
||||||
|
JS_ASSERT(status == PR_SUCCESS);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
lockOwner = PR_GetCurrentThread();
|
lockOwner = PR_GetCurrentThread();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user