diff --git a/sync/sync_mac.v b/sync/sync_mac.v index 3e20102659..4f8f78fa35 100644 --- a/sync/sync_mac.v +++ b/sync/sync_mac.v @@ -9,11 +9,11 @@ struct Mutex { mutex C.pthread_mutex_t } -fn (m Mutex) lock() { +pub fn (m Mutex) lock() { C.pthread_mutex_lock(&m.mutex) } -fn (m Mutex) unlock() { +pub fn (m Mutex) unlock() { C.pthread_mutex_unlock(&m.mutex) }