Files
botw/src/KingSystem/Utils/Thread/TaskQueue.h
T
Léo Lam 98f0c80f1d The task and thread families are plain ksys::
They link in the same block as the plain-ksys:: Message family.
getItemValue and applyScreenFade sit in engine UI TUs, hence ksys::ui.

(AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
2026-10-06 03:19:39 +02:00

22 lines
477 B
C++

#pragma once
#include <thread/seadCriticalSection.h>
#include "KingSystem/Utils/Thread/TaskQueueBase.h"
namespace ksys {
class TaskQueue : public TaskQueueBase {
SEAD_RTTI_OVERRIDE(TaskQueue, TaskQueueBase)
public:
explicit TaskQueue(sead::Heap* heap);
private:
void lock() const override { mCS.lock(); }
void unlock() const override { mCS.unlock(); }
mutable sead::CriticalSection mCS;
};
KSYS_CHECK_SIZE_NX150(TaskQueue, 0xd0);
} // namespace ksys