sync public fns
parent
5b5c6b7918
commit
2ca6859982
|
@ -9,11 +9,11 @@ struct Mutex {
|
||||||
mutex C.pthread_mutex_t
|
mutex C.pthread_mutex_t
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (m Mutex) lock() {
|
pub fn (m Mutex) lock() {
|
||||||
C.pthread_mutex_lock(&m.mutex)
|
C.pthread_mutex_lock(&m.mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (m Mutex) unlock() {
|
pub fn (m Mutex) unlock() {
|
||||||
C.pthread_mutex_unlock(&m.mutex)
|
C.pthread_mutex_unlock(&m.mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue