summaryrefslogtreecommitdiff
path: root/src/logos/threadpool.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-24 23:30:39 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-24 23:30:39 +1100
commite1e24f72d54791a10277ca48d9fff9d98e133f97 (patch)
tree59e2be0629acf21282c565961fc2f115a3c845d9 /src/logos/threadpool.c
parenta1209776eb50b1488f02912a6c74481f107c0284 (diff)
bring back some logs
Diffstat (limited to 'src/logos/threadpool.c')
-rw-r--r--src/logos/threadpool.c6
1 files 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;
}