1
0
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:
Alexander Medvednikov 2019-10-30 16:43:40 +03:00
parent 2bd2501dc0
commit 08c1f408d3

View File

@ -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 }
} }
} }