diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-06-14 14:53:20 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-06-14 14:53:20 +0200 |
| commit | 730e129a800f2406ff7b879931c433438b69c6cd (patch) | |
| tree | 79191eb6c15a0b813a1c0462d9e95eb5f103d738 /src/custommem.c | |
| parent | 883fc1681d214efe8c2d43089e2e38900d6d7db2 (diff) | |
| download | box64-730e129a800f2406ff7b879931c433438b69c6cd.tar.gz box64-730e129a800f2406ff7b879931c433438b69c6cd.zip | |
Change the way locked mutex are detected (taken from box86)
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/custommem.c b/src/custommem.c index 8bc25ac0..bfedc35a 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -898,9 +898,8 @@ int unlockCustommemMutex() int ret = 0; int i = 0; #define GO(A, B) \ - i = checkMutex(&A); \ + i = checkUnlockMutex(&A); \ if(i) { \ - pthread_mutex_unlock(&A); \ ret|=(1<<B); \ } GO(mutex_blocks, 0) |