Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pthreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ static void signal_work_is_done(pthreadpool_t threadpool) {
uint32_t prev_value = pthreadpool_exchange_acquire_release_uint32_t(
&threadpool->work_is_done, 1);
assert(prev_value == 0);
(void)prev_value; // Silence unused variable warning.
#if PTHREADPOOL_USE_FUTEX
futex_wake_all(&threadpool->work_is_done);
#else
Expand Down Expand Up @@ -674,6 +675,7 @@ PTHREADPOOL_INTERNAL void pthreadpool_parallelize(
pthreadpool_load_consume_int32_t(&threadpool->num_active_threads);
assert(num_active_threads == 0 ||
num_active_threads == PTHREADPOOL_NUM_ACTIVE_THREADS_DONE);
void(num_active_threads); // Silence unused variable warning.

/* Setup global arguments */
pthreadpool_store_relaxed_void_p(&threadpool->thread_function,
Expand Down
Loading