From c1d41e190c644d709c1ecb696d78dcde690868e5 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Mon, 6 Apr 2020 14:16:24 +0100 Subject: [PATCH] (task_queue) Add warning about the usage of 'task_queue_remove()' --- libretro-common/queues/task_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libretro-common/queues/task_queue.c b/libretro-common/queues/task_queue.c index 7ca96c5b6b..d658f6b92f 100644 --- a/libretro-common/queues/task_queue.c +++ b/libretro-common/queues/task_queue.c @@ -313,6 +313,7 @@ static scond_t *worker_cond = NULL; static sthread_t *worker_thread = NULL; static bool worker_continue = true; /* use running_lock when touching it */ +/* 'queue_lock' must be held for the duration of this function */ static void task_queue_remove(task_queue_t *queue, retro_task_t *task) { retro_task_t *t = NULL;