From 6701c3b26375bf18453fd924f595bba04d85cde3 Mon Sep 17 00:00:00 2001 From: Richard Warburton Date: Tue, 30 Jul 2019 01:19:29 +1200 Subject: [PATCH] Fixes #1362 --- vlib/sync/sync_nix.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/sync/sync_nix.v b/vlib/sync/sync_nix.v index 4f8f78fa35..13a6a5be74 100644 --- a/vlib/sync/sync_nix.v +++ b/vlib/sync/sync_nix.v @@ -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) }