about summary refs log tree commit diff stats
path: root/src/box64context.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-04-10 20:09:23 +0800
committerGitHub <noreply@github.com>2025-04-10 14:09:23 +0200
commit0bb41a73c27df807ba8fcaa205612be7b3a1ac95 (patch)
treee789a5ff074bae6d492c6ea19f824cdecc7e3d37 /src/box64context.c
parentf9f082ee53ae0ab8e12b0c1bf1de339af8b92282 (diff)
downloadbox64-0bb41a73c27df807ba8fcaa205612be7b3a1ac95.tar.gz
box64-0bb41a73c27df807ba8fcaa205612be7b3a1ac95.zip
[WOW64] More tweaks towards PE build (#2519)
Diffstat (limited to 'src/box64context.c')
-rw-r--r--src/box64context.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/box64context.c b/src/box64context.c
index 74e86c83..110873f6 100644
--- a/src/box64context.c
+++ b/src/box64context.c
@@ -86,39 +86,6 @@ void free_tlsdatasize(void* p)
 void x64Syscall(x64emu_t *emu);
 void x86Syscall(x64emu_t *emu);
 
-int unlockMutex()
-{
-    int ret = unlockCustommemMutex();
-    int i;
-    #ifdef USE_CUSTOM_MUTEX
-    uint32_t tid = (uint32_t)GetTID();
-    #define GO(A, B)                    \
-        i = (native_lock_storeifref2_d(&A, 0, tid)==tid); \
-        if(i) {                         \
-            ret|=(1<<B);                \
-        }
-    #else
-        #define GO(A, B)                \
-        i = checkUnlockMutex(&A);       \
-        if(i) {                         \
-            ret|=(1<<B);                \
-        }
-    #endif
-
-    GO(my_context->mutex_trace, 7)
-    #ifdef DYNAREC
-    GO(my_context->mutex_dyndump, 8)
-    #else
-    GO(my_context->mutex_lock, 8)
-    #endif
-    GO(my_context->mutex_tls, 9)
-    GO(my_context->mutex_thread, 10)
-    GO(my_context->mutex_bridge, 11)
-    #undef GO
-
-    return ret;
-}
-
 void relockMutex(int locks)
 {
     relockCustommemMutex(locks);