kern: refactor to use m_ for member variables
This commit is contained in:
@@ -24,28 +24,28 @@ namespace ams::kern {
|
||||
private:
|
||||
class TaskQueue {
|
||||
private:
|
||||
KInterruptTask *head;
|
||||
KInterruptTask *tail;
|
||||
KInterruptTask *m_head;
|
||||
KInterruptTask *m_tail;
|
||||
public:
|
||||
constexpr TaskQueue() : head(nullptr), tail(nullptr) { /* ... */ }
|
||||
constexpr TaskQueue() : m_head(nullptr), m_tail(nullptr) { /* ... */ }
|
||||
|
||||
constexpr KInterruptTask *GetHead() { return this->head; }
|
||||
constexpr bool IsEmpty() const { return this->head == nullptr; }
|
||||
constexpr void Clear() { this->head = nullptr; this->tail = nullptr; }
|
||||
constexpr KInterruptTask *GetHead() { return m_head; }
|
||||
constexpr bool IsEmpty() const { return m_head == nullptr; }
|
||||
constexpr void Clear() { m_head = nullptr; m_tail = nullptr; }
|
||||
|
||||
void Enqueue(KInterruptTask *task);
|
||||
void Dequeue();
|
||||
};
|
||||
private:
|
||||
TaskQueue task_queue;
|
||||
KThread *thread;
|
||||
TaskQueue m_task_queue;
|
||||
KThread *m_thread;
|
||||
private:
|
||||
static void ThreadFunction(uintptr_t arg);
|
||||
void ThreadFunctionImpl();
|
||||
public:
|
||||
constexpr KInterruptTaskManager() : task_queue(), thread(nullptr) { /* ... */ }
|
||||
constexpr KInterruptTaskManager() : m_task_queue(), m_thread(nullptr) { /* ... */ }
|
||||
|
||||
constexpr KThread *GetThread() const { return this->thread; }
|
||||
constexpr KThread *GetThread() const { return m_thread; }
|
||||
|
||||
NOINLINE void Initialize();
|
||||
void EnqueueTask(KInterruptTask *task);
|
||||
|
||||
Reference in New Issue
Block a user