diff options
| author | Omar Rizwan <omar@omar.website> | 2024-05-22 22:03:33 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2024-05-22 22:03:33 +0000 |
| commit | 33bb77a242aa0498d4e5eba91e2fcd777db6e241 (patch) | |
| tree | 67d413061f612c7f854c697dd8d26be7c081cb6d /workqueue.c | |
| parent | trace: Raise limit; print thread index (diff) | |
| download | folk-33bb77a242aa0498d4e5eba91e2fcd777db6e241.tar.gz folk-33bb77a242aa0498d4e5eba91e2fcd777db6e241.zip | |
Fix workqueue.c
Diffstat (limited to 'workqueue.c')
| -rw-r--r-- | workqueue.c | 1 |
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); |
