From 2ca6859982303d11335a85aaa583064cd09443c7 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 26 Jun 2019 18:29:43 +0200 Subject: [PATCH] sync public fns --- sync/sync_mac.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }