diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-03 13:55:21 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-03 13:55:21 +0200 |
| commit | 48b881f4912bc795e0467e334e359e9876f73c4f (patch) | |
| tree | 68bf97bc36e371d44a41d124dd4b25e9d6c1c81b /src/libtools/threads.c | |
| parent | a6f0525a4c2d96d2f54707369acc75e54d4d6574 (diff) | |
| download | box64-48b881f4912bc795e0467e334e359e9876f73c4f.tar.gz box64-48b881f4912bc795e0467e334e359e9876f73c4f.zip | |
Added wrapped pthread_cond_clockwait (for #303)
Diffstat (limited to 'src/libtools/threads.c')
| -rwxr-xr-x | src/libtools/threads.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 0c81f3ce..8486d3dd 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -672,6 +672,11 @@ EXPORT int my_pthread_cond_wait(x64emu_t* emu, pthread_cond_t* cond, void* mutex (void)emu; return pthread_cond_wait(cond, getAlignedMutex((pthread_mutex_t*)mutex)); } +EXPORT int my_pthread_cond_clockwait(x64emu_t *emu, pthread_cond_t* cond, void* mutex, __clockid_t __clock_id, const struct timespec* __abstime) +{ + (void)emu; + return pthread_cond_clockwait(cond, getAlignedMutex((pthread_mutex_t*)mutex), __clock_id, __abstime); +} EXPORT void my__pthread_cleanup_push_defer(x64emu_t* emu, void* buffer, void* routine, void* arg) { |