remove dead code
This commit is contained in:
parent
ff0a13e761
commit
b354091704
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user