about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-12-03 13:21:52 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-12-03 13:21:52 +0100
commitd0d18441cfdedac53b0ed8a772a88a1c26be7984 (patch)
tree0eec62f0d6ef8948705004aa992d1775e46ceef2 /src/libtools
parent3f1c37aa76ff13d90e60eb66c4516f8feebaf3f5 (diff)
downloadbox64-d0d18441cfdedac53b0ed8a772a88a1c26be7984.tar.gz
box64-d0d18441cfdedac53b0ed8a772a88a1c26be7984.zip
Use DynaCall instead of EmuCall for pthread_once callback (speedup some init code=
Diffstat (limited to 'src/libtools')
-rwxr-xr-xsrc/libtools/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index 88c56ed9..820e079c 100755
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -686,7 +686,7 @@ int EXPORT my_pthread_once(x64emu_t* emu, int* once, void* cb)
 	#endif
 	if(old)
 		return 0;
-	EmuCall(emu, (uintptr_t)cb);  // avoid DynaCall for now, functions are only used once after all
+	DynaCall(emu, (uintptr_t)cb);  // using DynaCall, speedup wine 7.21 initialisation
 	return 0;
 }
 EXPORT int my___pthread_once(x64emu_t* emu, void* once, void* cb) __attribute__((alias("my_pthread_once")));