Skip to content

Commit

Permalink
🎨 threadpools win fix again and again and again and again and again a…
Browse files Browse the repository at this point in the history
…nd again and again
  • Loading branch information
fennecdjay committed Sep 25, 2023
1 parent 01ab25a commit 750ff22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
name: Windows ${{ matrix.double && 'double' || 'float '}}
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
BUILD_ON_WINDOWS: 1
CC: gcc
USE_DOUBLE: ${{ matrix.double }}
strategy:
Expand Down
3 changes: 3 additions & 0 deletions src/threadpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ ANN static bool alloc(threadpool_t *p, const uint32_t thread_count,
}

ANN static bool utils(threadpool_t *p) {
#ifdef BUILD_ON_WINDOWS
p->lock = NULL;
#endif
if(gwt_lock_ini(&p->lock)) return false;
p->has_lock = true;
if(gwt_cond_ini(&p->cond)) return false;
Expand Down

0 comments on commit 750ff22

Please sign in to comment.