From 9a84874f0754329a2f8785cc83986bb08668e1cf Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 25 Sep 2023 08:46:23 +0200 Subject: [PATCH] :art: threadpools win fix again and again and again --- include/threadpool.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/threadpool.h b/include/threadpool.h index 0a06d9b..ff22d4d 100644 --- a/include/threadpool.h +++ b/include/threadpool.h @@ -60,7 +60,11 @@ ANN static inline void gwt_lock_end(gwtlock_t *lock) { ANN static inline void gwt_lock_ini(gwtlock_t *lock) { return InitializeCriticalSection(*lock); } -ANN static inline void gwt_cond_end(gwtcond_t *cond) {} +ANN static inline int gwt_cond_end(gwtcond_t *cond NUSED) { return 0;} +ANN static inline int gwt_cond_ini(gwtcond_t *cond) { + InitializeConditionVariable(cond); + return 0; +} #else ANN static inline int gwt_lock(gwtlock_t *lock) { return pthread_mutex_lock(lock);