diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-04-13 14:43:30 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-04-13 14:43:30 +0200 |
| commit | 7dee075c107c4f61a3bcc27535636c8bb54d9098 (patch) | |
| tree | cd85b6ea06dd53778fabebf401491ecf4e03d602 /src/libtools/threads.c | |
| parent | b9ea2408c205bbcd38212dc64aa2ef6ea47dc924 (diff) | |
| download | box64-7dee075c107c4f61a3bcc27535636c8bb54d9098.tar.gz box64-7dee075c107c4f61a3bcc27535636c8bb54d9098.zip | |
Fixed a few warning here and there...
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 1baf91e9..2829917d 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -139,9 +139,9 @@ static void emuthread_destroy(void* p) emuthread_t *et = (emuthread_t*)p; if(!et) return; - void* ptr; // check tlsdata - /*if (my_context && (ptr = pthread_getspecific(my_context->tlskey)) != NULL) + /*void* ptr; + if (my_context && (ptr = pthread_getspecific(my_context->tlskey)) != NULL) free_tlsdatasize(ptr);*/ // free x64emu if(et) { @@ -477,6 +477,7 @@ EXPORT int my_pthread_setattr_default_np(x64emu_t* emu, pthread_attr_t* attr) PTHREAD_ATTR_ALIGN(attr); int ret = pthread_setattr_default_np(PTHREAD_ATTR(attr)); PTHREAD_ATTR_UNALIGN(attr); + return ret; } #endif //!ANDROID #endif @@ -658,7 +659,6 @@ static void* findkey_dtorFct(void* fct) #undef SUPER // custom implementation of pthread_once... -static __thread uintptr_t my_once_callback_fct = 0; int EXPORT my_pthread_once(x64emu_t* emu, int* once, void* cb) { if(*once) // quick test first |