kern: KWorkerTaskManager no longer tracks id

This commit is contained in:
Michael Scire
2021-09-17 16:20:55 -07:00
parent e105b39ae7
commit 0230609cca
3 changed files with 4 additions and 8 deletions

View File

@@ -33,7 +33,6 @@ namespace ams::kern {
KWorkerTask *m_head_task;
KWorkerTask *m_tail_task;
KThread *m_thread;
WorkerType m_type;
bool m_active;
private:
static void ThreadFunction(uintptr_t arg);
@@ -42,9 +41,9 @@ namespace ams::kern {
KWorkerTask *GetTask();
void AddTask(KWorkerTask *task);
public:
constexpr KWorkerTaskManager() : m_head_task(), m_tail_task(), m_thread(), m_type(WorkerType_Count), m_active() { /* ... */ }
constexpr KWorkerTaskManager() : m_head_task(), m_tail_task(), m_thread(), m_active() { /* ... */ }
NOINLINE void Initialize(WorkerType wt, s32 priority);
NOINLINE void Initialize(s32 priority);
static void AddTask(WorkerType type, KWorkerTask *task);
};