Skip to content

Commit

Permalink
🎨 threadpools win fix 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 6ea4727 commit 9a84874
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a84874

Please sign in to comment.