about summary refs log tree commit diff stats
path: root/src/include/threads.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-06-14 14:53:20 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-06-14 14:53:20 +0200
commit730e129a800f2406ff7b879931c433438b69c6cd (patch)
tree79191eb6c15a0b813a1c0462d9e95eb5f103d738 /src/include/threads.h
parent883fc1681d214efe8c2d43089e2e38900d6d7db2 (diff)
downloadbox64-730e129a800f2406ff7b879931c433438b69c6cd.tar.gz
box64-730e129a800f2406ff7b879931c433438b69c6cd.zip
Change the way locked mutex are detected (taken from box86)
Diffstat (limited to 'src/include/threads.h')
-rwxr-xr-xsrc/include/threads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/threads.h b/src/include/threads.h
index 19d3c9bc..847d4ee6 100755
--- a/src/include/threads.h
+++ b/src/include/threads.h
@@ -20,7 +20,7 @@ void fini_pthread_helper(box64context_t* context);
 // prepare an "emuthread structure" in pet and return address of function pointer for a "thread creation routine"
 void* my_prepare_thread(x64emu_t *emu, void* f, void* arg, int ssize, void** pet);
 
-//check if a mutex is locked by current thread (works only for PTHREAD_MUTEX_ERRORCHECK typed mutex)
-int checkMutex(void* m);
+//check and unlock if a mutex is locked by current thread (works only for PTHREAD_MUTEX_ERRORCHECK typed mutex)
+int checkUnlockMutex(void* m);
 
 #endif //_THREADS_H_
\ No newline at end of file