diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-12 17:23:02 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-12 17:23:02 +0200 |
| commit | 2a10ddc75ba2bcf2915ff49ac88664ee8e7d1939 (patch) | |
| tree | f9a056bb679e4dc2e9173e9341003d2a2a7ada1b /src/libtools/threads.c | |
| parent | 8ed08b3bbc95106320f2ee42bae2d85a336d06ca (diff) | |
| download | box64-2a10ddc75ba2bcf2915ff49ac88664ee8e7d1939.tar.gz box64-2a10ddc75ba2bcf2915ff49ac88664ee8e7d1939.zip | |
[WRAPPER] Added 1 more wrapped function to libpthreads (for #2808)
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 3e344e8c..40e7b956 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -930,6 +930,20 @@ EXPORT int my_pthread_mutexattr_setkind_np(x64emu_t* emu, my_mutexattr_t *attr, attr->x86 = mattr.x86; return ret; } +EXPORT int my_pthread_mutexattr_setprioceiling(x64emu_t* emu, my_mutexattr_t *attr, int p) +{ +#ifndef TERMUX + (void)emu; + my_mutexattr_t mattr = {0}; + mattr.x86 = attr->x86; + int ret = pthread_mutexattr_setprioceiling(&mattr.nat, p); + attr->x86 = mattr.x86; + return ret; +#else + (void)emu; (void)attr; (void)p; + return 0; +#endif +} EXPORT int my_pthread_mutexattr_setprotocol(x64emu_t* emu, my_mutexattr_t *attr, int p) { #ifndef TERMUX |