fix sync_windows.v
parent
2bd2501dc0
commit
08c1f408d3
|
@ -63,9 +63,9 @@ pub fn (m mut Mutex) lock() {
|
||||||
}
|
}
|
||||||
state := C.WaitForSingleObject(m.mx, INFINITE) // infinite wait
|
state := C.WaitForSingleObject(m.mx, INFINITE) // infinite wait
|
||||||
m.state = match state {
|
m.state = match state {
|
||||||
WAIT_ABANDONED { MutexState.abandoned }
|
WAIT_ABANDONED { .abandoned }
|
||||||
WAIT_OBJECT_0 { MutexState.waiting }
|
WAIT_OBJECT_0 { .waiting }
|
||||||
else { MutexState.broken }
|
else { .broken }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue