Skip to content

Commit

Permalink
🎨 threadpools win fix again and again and again and again
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Sep 25, 2023
1 parent 9a84874 commit c9edc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit c9edc5f

Please sign in to comment.