fix: Foreground tasks not being cancellable

This commit is contained in:
WerWolv
2022-10-05 21:25:52 +02:00
parent 556895744b
commit 5ace199dc4
2 changed files with 14 additions and 6 deletions

View File

@@ -108,6 +108,7 @@ namespace hex {
static std::mutex s_deferredCallsMutex;
static std::list<std::shared_ptr<Task>> s_tasks;
static std::list<std::shared_ptr<Task>> s_taskQueue;
static std::list<std::function<void()>> s_deferredCalls;
static std::mutex s_queueMutex;