ThreadManager: Don't allow reordering of queue.

Allowing a priority item is faster, but can cause confusion when you
expect things to run in the same sequence they're enqueued.
This commit is contained in:
Unknown W. Brackets committed 2023-01-14 16:35:01 -08:00
1 parent 5521bd62d7
commit 3a6fa9b4ba
3 files changed
+10 -22

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ public:
void Init(int numCores, int numLogicalCoresPerCpu);
void EnqueueTask(Task *task);
// Use enforceSequence if this must run after all previously queued tasks.
void EnqueueTaskOnThread(int threadNum, Task *task, bool enforceSequence = false);
void EnqueueTaskOnThread(int threadNum, Task *task);
void Teardown();
bool IsInitialized() const;