Skip to content

Commit

Permalink
🎨 threadpools win fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Sep 25, 2023
1 parent 13fa01b commit 930eddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#ifdef BUILD_ON_WINDOWS
typedef HANDLE gwtthread_t;
typedef PCRITICAL_SECTION gwtmutex_t;
typedef PCRITICAL_SECTION gwtlock_t;
typedef PCONDITION_VARIABLE gwtcond_t;
typedef long unsigned gwtreturn_t;
#else
Expand Down Expand Up @@ -41,11 +41,11 @@ ANN static inline void gwt_wait(gwtcond_t *cond, gwtlock_t *lock) {
SleepConditionVariableCS(cond, lock, INFINITE); // bool
}
ANN static inline int gwt_broadcast(gwtcond_t *cond) {
WakeAllConditionVariable(cond);
WakeAllConditionVariable(*cond);
return 0;
}
ANN static inline int gwt_signal(gwtcond_t *cond) {
WakeConditionVariable(cond);
WakeConditionVariable(*cond);
return 0;
}
ANN static inline void gwt_create(gwtthread_t *thread, void* (*fun)(void*), void *arg) {
Expand Down

0 comments on commit 930eddc

Please sign in to comment.