mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
add missing cfns
This commit is contained in:

committed by
Alexander Medvednikov

parent
5794594e19
commit
268a6dc6d9
@ -77,7 +77,7 @@ pub fn (m mut Mutex) lock() {
|
||||
|
||||
pub fn (m mut Mutex) unlock() {
|
||||
if m.state == .waiting {
|
||||
if C.ReleaseMutex(m.mx) != 0 {
|
||||
if ReleaseMutex(m.mx) {
|
||||
m.state = .broken
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user