Actually block in a windows cvar

Turns out with an argument of 0 the function always returns immediately!

Closes #11003
This commit is contained in:
Alex Crichton 2013-12-29 15:23:15 -08:00
parent aa5d779a35
commit 0da86ba48b
2 changed files with 1 additions and 4 deletions

View file

@ -286,7 +286,7 @@ mod imp {
pub unsafe fn wait(cond: *c_void, m: *c_void) {
unlock(m);
WaitForSingleObject(cond as HANDLE, 0);
WaitForSingleObject(cond as HANDLE, libc::INFINITE);
lock(m);
}