mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Get rid of the PrioritizedWorkQueue. Instead just queue tasks on the ThreadManager.
This commit is contained in:
1 parent
34f8fc557f
commit
446c2c027e
17 files changed
+102
-293
No files matched your search
@@ -72,7 +72,7 @@ static void WorkerThreadFunc(GlobalThreadContext *global, ThreadContext *thread)
|
||||
// The task itself takes care of notifying anyone waiting on it. Not the
|
||||
// responsibility of the ThreadManager (although it could be!).
|
||||
if (task) {
|
||||
task->run();
|
||||
task->Run();
|
||||
delete task;
|
||||
}
|
||||
}
|
||||
@@ -124,6 +124,6 @@ int ThreadManager::GetNumLooperThreads() const {
|
||||
return (int)(global_->threads_.size() / 2);
|
||||
}
|
||||
|
||||
void ThreadManager::TryCancelTask(Task *task) {
|
||||
void ThreadManager::TryCancelTask(uint64_t taskID) {
|
||||
// Do nothing
|
||||
}
|
||||
Reference in new issue
Block a user