pull/1369/head
Richard Warburton 2019-07-30 01:19:29 +12:00 committed by Alexander Medvednikov
parent 4100cca613
commit 6701c3b263
1 changed files with 2 additions and 2 deletions

View File

@ -9,11 +9,11 @@ struct Mutex {
mutex C.pthread_mutex_t
}
pub fn (m Mutex) lock() {
pub fn (m mut Mutex) lock() {
C.pthread_mutex_lock(&m.mutex)
}
pub fn (m Mutex) unlock() {
pub fn (m mut Mutex) unlock() {
C.pthread_mutex_unlock(&m.mutex)
}