From 7a95c78ba014bcf9c65bac82828f1035142affdd Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 26 Oct 2022 14:19:33 +0200 Subject: Fixed non-dynarec build --- src/libtools/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libtools') diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 3ef9dc35..85d5369b 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -679,10 +679,10 @@ int EXPORT my_pthread_once(x64emu_t* emu, int* once, void* cb) int old = native_lock_xchg_d(once, 1); #else int old = *once; // outside of the mutex in case once is badly formed - pthread_mutex_lock(my_context->mutex_lock); + pthread_mutex_lock(&my_context->mutex_lock); old = *once; *once = 1; - pthread_mutex_unlock(my_context->mutex_lock); + pthread_mutex_unlock(&my_context->mutex_lock); #endif if(old) return 0; -- cgit 1.4.1