From c9edc5f557569aa39edd43c4b7fbeb67aa14bacd Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 25 Sep 2023 08:52:02 +0200 Subject: [PATCH] :art: threadpools win fix again and again and again and again --- include/threadpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/threadpool.h b/include/threadpool.h index ff22d4d..bf1ea97 100644 --- a/include/threadpool.h +++ b/include/threadpool.h @@ -48,7 +48,7 @@ ANN static inline int gwt_signal(gwtcond_t *cond) { WakeConditionVariable(*cond); return 0; } -ANN static inline void gwt_create(gwtthread_t *thread, void* (*fun)(void*), void *arg) { +ANN static inline void gwt_create(gwtthread_t *thread, gwreturn_t (*fun)(void*), void *arg) { *thread = CreateThread(NULL, 0, fun, arg, 0, NULL); } ANN static inline void gwt_join(gwtthread_t thread) { @@ -62,7 +62,7 @@ ANN static inline void gwt_lock_ini(gwtlock_t *lock) { } 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); + InitializeConditionVariable(*cond); return 0; } #else