From 730e129a800f2406ff7b879931c433438b69c6cd Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 14 Jun 2021 14:53:20 +0200 Subject: Change the way locked mutex are detected (taken from box86) --- src/box64context.c | 3 +-- src/custommem.c | 3 +-- src/include/threads.h | 4 ++-- src/libtools/threads.c | 9 +++------ 4 files changed, 7 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/box64context.c b/src/box64context.c index 0202dba1..c3b228e6 100755 --- a/src/box64context.c +++ b/src/box64context.c @@ -73,9 +73,8 @@ int unlockMutex() int ret = unlockCustommemMutex(); int i; #define GO(A, B) \ - i = checkMutex(&A); \ + i = checkUnlockMutex(&A); \ if(i) { \ - pthread_mutex_unlock(&A); \ ret|=(1<