Merge pull request #108697 from clayjohn/pump-task

Ensure that threads only process one pump task
This commit is contained in:
Thaddeus Crews
2025-07-30 09:03:42 -05:00
6 changed files with 71 additions and 17 deletions

View File

@@ -223,7 +223,7 @@ void BetsyCompressor::_init() {
}
void BetsyCompressor::init() {
WorkerThreadPool::TaskID tid = WorkerThreadPool::get_singleton()->add_task(callable_mp(this, &BetsyCompressor::_thread_loop), true);
WorkerThreadPool::TaskID tid = WorkerThreadPool::get_singleton()->add_task(callable_mp(this, &BetsyCompressor::_thread_loop), true, "Betsy pump task", true);
command_queue.set_pump_task_id(tid);
command_queue.push(this, &BetsyCompressor::_assign_mt_ids, tid);
command_queue.push_and_sync(this, &BetsyCompressor::_init);