fix sync_win.v
parent
7edcbeca1a
commit
ab0a78a498
|
@ -64,9 +64,9 @@ pub fn (m mut Mutex) lock() {
|
||||||
// m.cycle_wait++
|
// m.cycle_wait++
|
||||||
// }
|
// }
|
||||||
match state {
|
match state {
|
||||||
WAIT_FAILED => m.wstate = BROKEN
|
WAIT_FAILED => { m.wstate = BROKEN }
|
||||||
WAIT_ABANDONED => m.wstate = ABOND
|
WAIT_ABANDONED => { m.wstate = ABOND }
|
||||||
WAIT_OBJECT_0 => m.wstate = WAIT & u32(0xff)
|
WAIT_OBJECT_0 => { m.wstate = WAIT & u32(0xff) }
|
||||||
}
|
}
|
||||||
// todo implement atomic counter
|
// todo implement atomic counter
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue