diff options
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.c b/src/windows.c index 2bea3bc..144da9d 100644 --- a/src/windows.c +++ b/src/windows.c @@ -27,7 +27,7 @@ static void checkin_worker_thread(struct pthreadpool* threadpool, uint32_t event_index) { - if (pthreadpool_fetch_sub_relaxed_size_t(&threadpool->active_threads, 1) == 1) { + if (pthreadpool_decrement_fetch_relaxed_size_t(&threadpool->active_threads) == 0) { SetEvent(threadpool->completion_event[event_index]); } } |