diff options
| author | Omar Rizwan <omar@omar.website> | 2024-12-05 18:16:44 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2024-12-05 18:16:44 +0000 |
| commit | 340b2880e5893cc0c8dfd854cdabc30458de149f (patch) | |
| tree | cd21fcc34941f6adb309b604f48554936edd9faf /workqueue.c | |
| parent | WIP: Steal-one instead of steal-half. Might fix dropping items (diff) | |
| download | folk-340b2880e5893cc0c8dfd854cdabc30458de149f.tar.gz folk-340b2880e5893cc0c8dfd854cdabc30458de149f.zip | |
workqueue: Don't need to trace items anymore
Diffstat (limited to 'workqueue.c')
| -rw-r--r-- | workqueue.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/workqueue.c b/workqueue.c index 459807c1..01c021f0 100644 --- a/workqueue.c +++ b/workqueue.c @@ -3,10 +3,6 @@ #include <fcntl.h> #include <stdio.h> -#if __has_include ("tracy/TracyC.h") -#include "tracy/TracyC.h" -#endif - #include "workqueue.h" // https://fzn.fr/readings/ppopp13.pdf @@ -71,8 +67,7 @@ WorkQueueItem workQueueTake(WorkQueue* q) { } if (x == NULL) { return (WorkQueueItem) { .op = NONE }; } - WorkQueueItem item = *x; - TracyCFreeS(x, 4); free(x); + WorkQueueItem item = *x; free(x); return item; } @@ -100,7 +95,6 @@ static void workQueueResize(WorkQueue* q) { void workQueuePush(WorkQueue* q, WorkQueueItem item) { WorkQueueItem* x = (WorkQueueItem*) malloc(sizeof(WorkQueueItem)); - TracyCAllocS(x, sizeof(*x), 4); *x = item; size_t b = atomic_load_explicit(&q->bottom, memory_order_relaxed); @@ -136,7 +130,7 @@ WorkQueueItem workQueueSteal(WorkQueue* q) { } if (x == NULL) { return (WorkQueueItem) { .op = NONE }; } - WorkQueueItem item = *x; TracyCFreeS(x, 4); free(x); + WorkQueueItem item = *x; free(x); return item; } |
