summaryrefslogtreecommitdiffstats
path: root/workqueue.c
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2024-05-22 22:03:33 +0000
committerOmar Rizwan <omar@omar.website>2024-05-22 22:03:33 +0000
commit33bb77a242aa0498d4e5eba91e2fcd777db6e241 (patch)
tree67d413061f612c7f854c697dd8d26be7c081cb6d /workqueue.c
parenttrace: Raise limit; print thread index (diff)
downloadfolk-33bb77a242aa0498d4e5eba91e2fcd777db6e241.tar.gz
folk-33bb77a242aa0498d4e5eba91e2fcd777db6e241.zip
Fix workqueue.c
Diffstat (limited to 'workqueue.c')
-rw-r--r--workqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/workqueue.c b/workqueue.c
index f66095bf..cfd895e7 100644
--- a/workqueue.c
+++ b/workqueue.c
@@ -28,6 +28,7 @@ WorkQueue* workQueueNew() {
return q;
}
+#include <stdio.h>
WorkQueueItem workQueueTake(WorkQueue* q) {
size_t b = atomic_load_explicit(&q->bottom, memory_order_relaxed);
WorkQueueArray* a = (WorkQueueArray*) atomic_load_explicit(&q->array, memory_order_relaxed);