diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-12-03 13:21:52 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-12-03 13:21:52 +0100 |
| commit | d0d18441cfdedac53b0ed8a772a88a1c26be7984 (patch) | |
| tree | 0eec62f0d6ef8948705004aa992d1775e46ceef2 /src | |
| parent | 3f1c37aa76ff13d90e60eb66c4516f8feebaf3f5 (diff) | |
| download | box64-d0d18441cfdedac53b0ed8a772a88a1c26be7984.tar.gz box64-d0d18441cfdedac53b0ed8a772a88a1c26be7984.zip | |
Use DynaCall instead of EmuCall for pthread_once callback (speedup some init code=
Diffstat (limited to 'src')
| -rwxr-xr-x | src/libtools/threads.c | 2 |
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"))); |