mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916757 - More logging to find out more about the error (CLOSED TREE)
This commit is contained in:
parent
8962eb32e5
commit
deb9e39268
@ -18,6 +18,8 @@
|
||||
*/
|
||||
|
||||
#include "primpl.h"
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
|
||||
/*
|
||||
* AddThreadToCVWaitQueueInternal --
|
||||
@ -150,6 +152,10 @@ md_UnlockAndPostNotifies(
|
||||
thred->md.prev = thred->md.next = NULL;
|
||||
|
||||
rv = ReleaseSemaphore(thred->md.blocked_sema, 1, NULL);
|
||||
if (!rv) {
|
||||
fprintf(stderr, "ReleaseSemaphore failed, handle: %x, last error: %x\n",
|
||||
(void*)thred->md.blocked_sema, GetLastError());
|
||||
}
|
||||
PR_ASSERT(rv != 0);
|
||||
thred = next;
|
||||
}
|
||||
@ -246,6 +252,10 @@ void _PR_MD_WAIT_CV(_MDCVar *cv, _MDLock *lock, PRIntervalTime timeout )
|
||||
|
||||
/* Wait for notification or timeout; don't really care which */
|
||||
rv = WaitForSingleObject(thred->md.blocked_sema, msecs);
|
||||
if (rv == WAIT_FAILED) {
|
||||
fprintf(stderr, "WaitForSingleObject failed, handle: %x, last error: %x\n",
|
||||
(void*)thred->md.blocked_sema, GetLastError());
|
||||
}
|
||||
|
||||
EnterCriticalSection(&(lock->mutex));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user