diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-10-26 14:19:33 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-10-26 14:19:33 +0200 |
| commit | 7a95c78ba014bcf9c65bac82828f1035142affdd (patch) | |
| tree | e85a151e4d2b423ca6c9912862f5645b2e290ed6 /src/libtools/threads.c | |
| parent | 5a2a546090b78dda3e9de2cc0c2a43a3bb936576 (diff) | |
| download | box64-7a95c78ba014bcf9c65bac82828f1035142affdd.tar.gz box64-7a95c78ba014bcf9c65bac82828f1035142affdd.zip | |
Fixed non-dynarec build
Diffstat (limited to 'src/libtools/threads.c')
| -rwxr-xr-x | src/libtools/threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |