Skip to content

Commit

Permalink
🎨 threadpools win fix again and 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 c9edc5f commit 5c3daf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ ANN static inline int gwt_signal(gwtcond_t *cond) {
WakeConditionVariable(*cond);
return 0;
}
ANN static inline void gwt_create(gwtthread_t *thread, gwreturn_t (*fun)(void*), void *arg) {
ANN static inline int gwt_create(gwtthread_t *thread, gwreturn_t (*fun)(void*), void *arg) {
*thread = CreateThread(NULL, 0, fun, arg, 0, NULL);
return 0;
}
ANN static inline void gwt_join(gwtthread_t thread) {
WaitForSingleObject(thread, INFINITE); // dword // (DWORD)0xFFFFFFFF on error
Expand Down

0 comments on commit 5c3daf8

Please sign in to comment.