about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-30 11:12:51 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-10-30 11:12:51 +0100
commit541adff4d40db9d32076c222c8e1289c5fceb84c (patch)
tree9fc89c33599f3ef43cfe9ebbf4e7408ff81a9801 /src/libtools/threads.c
parent39189a746bbe9f93617eda2b35c7b97ed105542a (diff)
downloadbox64-541adff4d40db9d32076c222c8e1289c5fceb84c.tar.gz
box64-541adff4d40db9d32076c222c8e1289c5fceb84c.zip
Improved clone wrapped function compatibility
Diffstat (limited to 'src/libtools/threads.c')
-rw-r--r--src/libtools/threads.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index e19b3fda..afa7a337 100644
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -161,7 +161,10 @@ static void emuthread_cancel(void* p)
 	et->cancels=NULL;
 	et->cancel_size = et->cancel_cap = 0;
 }
-
+void thread_forget_emu()
+{
+	pthread_setspecific(thread_key, NULL);
+}
 void thread_set_emu(x64emu_t* emu)
 {
 	emuthread_t *et = (emuthread_t*)pthread_getspecific(thread_key);