From e1e24f72d54791a10277ca48d9fff9d98e133f97 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:30:39 +1100 Subject: bring back some logs --- src/logos/threadpool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logos/threadpool.c b/src/logos/threadpool.c index 02cf347..bf54d08 100644 --- a/src/logos/threadpool.c +++ b/src/logos/threadpool.c @@ -8,7 +8,7 @@ static void *worker_factory(void *arg) { threadpool_worker *worker = arg; - // INFO("Starting job thread %d", worker->id); + // INFO("Starting job thread %d", worker->id); // Run forever, waiting for jobs. while (true) { @@ -17,9 +17,9 @@ static void *worker_factory(void *arg) { task t; if (ring_queue_dequeue(worker->pool->task_queue, &t)) { - // DEBUG("Job thread %d picked up task %d", worker->id, t.task_id); + DEBUG("Job thread %d picked up task %d", worker->id, t.task_id); } else { - // WARN("Job thread %d didnt pick up a task as queue was empty", worker->id); + WARN("Job thread %d didnt pick up a task as queue was empty", worker->id); pthread_mutex_unlock(&worker->pool->mutex); break; } -- cgit v1.2.3-70-g09d2