From 340b2880e5893cc0c8dfd854cdabc30458de149f Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Thu, 5 Dec 2024 13:16:44 -0500 Subject: workqueue: Don't need to trace items anymore --- workqueue.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'workqueue.c') diff --git a/workqueue.c b/workqueue.c index 459807c1..01c021f0 100644 --- a/workqueue.c +++ b/workqueue.c @@ -3,10 +3,6 @@ #include #include -#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; } -- cgit v1.2.3