summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-14 04:07:58 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-14 04:07:58 -0700
commit47b902b4a6b0fa572d59c9eeb55b31fbe5f522f3 (patch)
tree8bc0852da337a969fd47119430df35e8bea9dcec
parent903ee0386b2ca42834fc4d87b10e27c3df54835b (diff)
Fix error
-rw-r--r--src/threadpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threadpool.c b/src/threadpool.c
index 953d0ee..a860cf7 100644
--- a/src/threadpool.c
+++ b/src/threadpool.c
@@ -62,7 +62,7 @@ thread_pool_t *tp_create(smrt_arena_t *arena, u64 max_jobs, u64 num_threads) {
thread_pool_t *tp = smrt_arena_push(arena, sizeof(thread_pool_t), true);
ez_deque_t *q = ez_deque_create(arena, sizeof(tp_job_t), max_jobs);
- ts_deque_t tsq = ts_deque_create(q);
+ ts_deque_t tsq = ts_deque_create(arena, q);
pthread_t *threads = SMRTA_ALLOC_ARRAY(arena, pthread_t, num_threads);
worker_args * args = SMRTA_ALLOC_ARRAY(arena, worker_args, num_threads);