ksys/util: Add Event::isSignalSet

Missed it because of IDA's function tail mechanism...
This commit is contained in:
Léo Lam
2020-11-08 13:42:14 +01:00
parent bdfebd669b
commit 23ec19806c
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -47,4 +47,8 @@ void Event::resetSignal() {
mSignalSet.exchange(0);
}
bool Event::isSignalSet() const {
return mSignalSet == 1;
}
} // namespace ksys::util
+2
View File
@@ -22,6 +22,8 @@ public:
void setSignal();
void resetSignal();
bool isSignalSet() const;
private:
bool mManualReset = false;
sead::Atomic<u32> mSignalSet = 0;