ksys/act: Add more BaseProcMgr functions

This commit is contained in:
Léo Lam
2021-03-14 17:41:55 +01:00
parent 20960b596f
commit eef975f585
7 changed files with 362 additions and 60 deletions
+4 -1
View File
@@ -64,6 +64,9 @@ struct BaseProcJobList {
class BaseProcJobLists {
public:
BaseProcJobLists() = default;
~BaseProcJobLists() { ; }
void pushJob(BaseProcJobLink& link);
void eraseJob(BaseProcJobLink& link);
sead::TListNode<BaseProc*>* getJobWithTopPriority() const;
@@ -73,7 +76,7 @@ public:
const BaseProcJobList& getList(int idx) const { return mLists[idx]; }
private:
sead::SafeArray<BaseProcJobList, 8> mLists;
sead::SafeArray<BaseProcJobList, 8> mLists{};
};
class BaseProcJob final : public sead::Job {