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:
parent
aa5d779a35
commit
0da86ba48b
2 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue