mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
os: refactor/rewrite entire namespace.
This commit is contained in:
parent
6193283f03
commit
065485b971
181 changed files with 5353 additions and 1929 deletions
|
@ -45,7 +45,7 @@ namespace ams::pm::impl {
|
|||
Handle handle;
|
||||
svc::ProcessState state;
|
||||
u32 flags;
|
||||
os::WaitableHolder waitable_holder;
|
||||
os::WaitableHolderType waitable_holder;
|
||||
private:
|
||||
void SetFlag(Flag flag) {
|
||||
this->flags |= flag;
|
||||
|
@ -63,8 +63,8 @@ namespace ams::pm::impl {
|
|||
~ProcessInfo();
|
||||
void Cleanup();
|
||||
|
||||
void LinkToWaitableManager(os::WaitableManager &manager) {
|
||||
manager.LinkWaitableHolder(&this->waitable_holder);
|
||||
void LinkToWaitableManager(os::WaitableManagerType &manager) {
|
||||
os::LinkWaitableHolder(std::addressof(manager), std::addressof(this->waitable_holder));
|
||||
}
|
||||
|
||||
Handle GetHandle() const {
|
||||
|
@ -163,6 +163,8 @@ namespace ams::pm::impl {
|
|||
private:
|
||||
os::Mutex lock;
|
||||
public:
|
||||
constexpr ProcessList() : lock(false) { /* ... */ }
|
||||
|
||||
void Lock() {
|
||||
this->lock.Lock();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue