mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
Event: Fix implementation of "non-sticky" events.
This commit is contained in:
parent
9e6ec3b6cd
commit
69c5830ef2
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
ResultVal<bool> Acquire() override {
|
ResultVal<bool> Acquire() override {
|
||||||
|
// Release the event if it's not sticky...
|
||||||
|
if (reset_type != RESETTYPE_STICKY)
|
||||||
|
signaled = false;
|
||||||
|
|
||||||
return MakeResult<bool>(true);
|
return MakeResult<bool>(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue