mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Fixes #1362
This commit is contained in:
parent
4100cca613
commit
6701c3b263
@ -9,11 +9,11 @@ struct Mutex {
|
|||||||
mutex C.pthread_mutex_t
|
mutex C.pthread_mutex_t
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (m Mutex) lock() {
|
pub fn (m mut Mutex) lock() {
|
||||||
C.pthread_mutex_lock(&m.mutex)
|
C.pthread_mutex_lock(&m.mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (m Mutex) unlock() {
|
pub fn (m mut Mutex) unlock() {
|
||||||
C.pthread_mutex_unlock(&m.mutex)
|
C.pthread_mutex_unlock(&m.mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user