diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 21:42:49 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 21:42:49 +0100 |
| commit | c0f98bb0ec8b996d7fe35b1b311ec421587a94fd (patch) | |
| tree | ff32eaf3b02b52dcd0fb329c97c000bccf377a08 /src/libtools | |
| parent | 42b067dc39c7a5d32c59822f3d05a9b82394f6f1 (diff) | |
| download | box64-c0f98bb0ec8b996d7fe35b1b311ec421587a94fd.tar.gz box64-c0f98bb0ec8b996d7fe35b1b311ec421587a94fd.zip | |
Cleanup mutex wrapping
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/threads.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 32b9c7f4..381fa6cc 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -807,11 +807,6 @@ EXPORT int my_pthread_kill_old(x64emu_t* emu, void* thread, int sig) //} #ifndef NOALIGN -EXPORT int my_pthread_mutex_destroy(pthread_mutex_t *m) -{ - int ret = pthread_mutex_destroy(m); - return ret; -} typedef union my_mutexattr_s { int x86; pthread_mutexattr_t nat; @@ -895,9 +890,6 @@ EXPORT int my_pthread_mutexattr_settype(x64emu_t* emu, my_mutexattr_t *attr, int } EXPORT int my___pthread_mutexattr_settype(x64emu_t* emu, my_mutexattr_t *attr, int t) __attribute__((alias("my_pthread_mutexattr_settype"))); -// mutex -int my___pthread_mutex_destroy(pthread_mutex_t *m) __attribute__((alias("my_pthread_mutex_destroy"))); - #ifdef __SIZEOF_PTHREAD_MUTEX_T #if __SIZEOF_PTHREAD_MUTEX_T == 48 #define MUTEX_OVERSIZED_8 @@ -926,33 +918,6 @@ EXPORT int my_pthread_mutex_init(pthread_mutex_t *m, my_mutexattr_t *att) } EXPORT int my___pthread_mutex_init(pthread_mutex_t *m, my_mutexattr_t *att) __attribute__((alias("my_pthread_mutex_init"))); -EXPORT int my_pthread_mutex_lock(pthread_mutex_t *m) -{ - int ret = pthread_mutex_lock(m); - return ret; -} -EXPORT int my___pthread_mutex_lock(pthread_mutex_t *m) __attribute__((alias("my_pthread_mutex_lock"))); - -EXPORT int my_pthread_mutex_timedlock(pthread_mutex_t *m, const struct timespec * t) -{ - int ret = pthread_mutex_timedlock(m, t); - return ret; -} -EXPORT int my___pthread_mutex_trylock(pthread_mutex_t *m, const struct timespec * t) __attribute__((alias("my_pthread_mutex_timedlock"))); - -EXPORT int my_pthread_mutex_trylock(pthread_mutex_t *m) -{ - int ret = pthread_mutex_trylock(m); - return ret; -} -EXPORT int my___pthread_mutex_unlock(pthread_mutex_t *m) __attribute__((alias("my_pthread_mutex_trylock"))); - -EXPORT int my_pthread_mutex_unlock(pthread_mutex_t *m) -{ - int ret = pthread_mutex_unlock(m); - return ret; -} - typedef union my_condattr_s { int x86; pthread_condattr_t nat; |