mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
0d1cf674f0
39 changed files with 18940 additions and 10805 deletions
|
|
@ -90,15 +90,14 @@ class SyncWaiter : public WaitableEvent::Waiter {
|
|||
}
|
||||
|
||||
bool Fire(WaitableEvent *signaling_event) {
|
||||
lock_->Acquire();
|
||||
const bool previous_value = fired_;
|
||||
fired_ = true;
|
||||
if (!previous_value)
|
||||
signaling_event_ = signaling_event;
|
||||
lock_->Release();
|
||||
AutoLock locked(*lock_);
|
||||
|
||||
if (previous_value)
|
||||
if (fired_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
fired_ = true;
|
||||
signaling_event_ = signaling_event;
|
||||
|
||||
cv_->Broadcast();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue