diff options
| author | Léo Lam <leo@leolam.fr> | 2020-06-05 17:09:06 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-08-18 22:50:25 +0200 |
| commit | 2de366be0fa75e571c605e017b5604bccbdb75bf (patch) | |
| tree | b8044fc96bba792b1875067032da2fd4498a44a3 /src/KingSystem/ActorSystem/actBaseProcUnit.h | |
Initial commit
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProcUnit.h')
| -rw-r--r-- | src/KingSystem/ActorSystem/actBaseProcUnit.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProcUnit.h b/src/KingSystem/ActorSystem/actBaseProcUnit.h new file mode 100644 index 00000000..7bfe7e28 --- /dev/null +++ b/src/KingSystem/ActorSystem/actBaseProcUnit.h @@ -0,0 +1,28 @@ +#pragma once + +#include <basis/seadTypes.h> +#include <thread/seadCriticalSection.h> + +namespace ksys::act { + +class BaseProc; +class BaseProcHandle; + +class BaseProcUnit { +public: + bool deleteProc(void*, BaseProcHandle* handle); + bool setProc(BaseProc* proc); + void unlinkProc(BaseProc* proc); + void cleanUp(BaseProc* proc, bool set_flag_5); + bool isParentHandleDefault() const; + +private: + u32 mFlags; + BaseProcHandle* mHandle; + BaseProc* mProc; + // FIXME: + // BaseProcRequest mRequest; + sead::CriticalSection mCS; +}; + +} // namespace ksys::act |
