mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: experimental locked concurrency support, part 1 (#5637)
This commit is contained in:
@ -43,7 +43,7 @@ pub fn new_mutex() &Mutex {
|
||||
return sm
|
||||
}
|
||||
|
||||
pub fn (mut m Mutex) lock() {
|
||||
pub fn (mut m Mutex) m_lock() {
|
||||
// if mutex handle not initalized
|
||||
if isnil(m.mx) {
|
||||
m.mx = MHANDLE(C.CreateMutex(0, false, 0))
|
||||
|
Reference in New Issue
Block a user