mirror of
https://github.com/zeldaret/botw
synced 2026-07-11 14:38:41 -04:00
ksys/util: Add Event::isSignalSet
Missed it because of IDA's function tail mechanism...
This commit is contained in:
@@ -47,4 +47,8 @@ void Event::resetSignal() {
|
||||
mSignalSet.exchange(0);
|
||||
}
|
||||
|
||||
bool Event::isSignalSet() const {
|
||||
return mSignalSet == 1;
|
||||
}
|
||||
|
||||
} // namespace ksys::util
|
||||
|
||||
@@ -22,6 +22,8 @@ public:
|
||||
void setSignal();
|
||||
void resetSignal();
|
||||
|
||||
bool isSignalSet() const;
|
||||
|
||||
private:
|
||||
bool mManualReset = false;
|
||||
sead::Atomic<u32> mSignalSet = 0;
|
||||
|
||||
Reference in New Issue
Block a user