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)