From 48b881f4912bc795e0467e334e359e9876f73c4f Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 3 Jul 2022 13:55:21 +0200 Subject: Added wrapped pthread_cond_clockwait (for #303) --- src/libtools/threads.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libtools/threads.c') 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) { -- cgit 1.4.1