From b35409170494e155d78e784a16cff63ddf9f7e91 Mon Sep 17 00:00:00 2001 From: Kevin Trogant Date: Tue, 22 Apr 2025 20:57:17 +0200 Subject: [PATCH] remove dead code --- main.odin | 6 +++--- task.odin | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/main.odin b/main.odin index 8b3f81e..4bc59fa 100644 --- a/main.odin +++ b/main.odin @@ -14,9 +14,9 @@ test_finished :: proc(user_data: rawptr) { main :: proc() { init_scheduler(100, 1000) add_worker({.General, .Streaming, .Physics, .Rendering}) - //add_worker({.General, .Streaming, .Physics, .Rendering}) - //add_worker({.General, .Streaming, .Physics, .Rendering}) - //add_worker({.General, .Streaming, .Physics, .Rendering}) + add_worker({.General, .Streaming, .Physics, .Rendering}) + add_worker({.General, .Streaming, .Physics, .Rendering}) + add_worker({.General, .Streaming, .Physics, .Rendering}) queue_task(test_task, test_finished, nil, 10) diff --git a/task.odin b/task.odin index 6a4fd33..423be82 100644 --- a/task.odin +++ b/task.odin @@ -236,13 +236,6 @@ queue_task :: proc( } else { subtask_timings[i].time = 0.0 } - - /* - sync.lock(&_scheduler.schedule_mutex) - // Add to schedule. This is FIFO. We could be more clever (for example use shortest time to finish) - queue.push_back(&_scheduler.schedule, subtask_slot) - sync.unlock(&_scheduler.schedule_mutex) - */ } sync.unlock(&_scheduler.subtask_list_mutex)