Assert successful return of PR_WaitCondVar, bug 785201. r=sstangl

This commit is contained in:
Brian Hackett 2012-08-23 17:40:38 -06:00
parent 32f5451274
commit fe7611778d

View File

@ -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