mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix sync_windows.v
This commit is contained in:
parent
2bd2501dc0
commit
08c1f408d3
@ -63,9 +63,9 @@ pub fn (m mut Mutex) lock() {
|
||||
}
|
||||
state := C.WaitForSingleObject(m.mx, INFINITE) // infinite wait
|
||||
m.state = match state {
|
||||
WAIT_ABANDONED { MutexState.abandoned }
|
||||
WAIT_OBJECT_0 { MutexState.waiting }
|
||||
else { MutexState.broken }
|
||||
WAIT_ABANDONED { .abandoned }
|
||||
WAIT_OBJECT_0 { .waiting }
|
||||
else { .broken }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user