mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[common] event: lgResetEvent should return the last state of the event
This commit is contained in:
parent
a094fb8104
commit
90b90e667a
@ -203,6 +203,5 @@ bool lgSignalEvent(LGEvent * handle)
|
|||||||
bool lgResetEvent(LGEvent * handle)
|
bool lgResetEvent(LGEvent * handle)
|
||||||
{
|
{
|
||||||
assert(handle);
|
assert(handle);
|
||||||
atomic_store_explicit(&handle->signaled, false, memory_order_release);
|
return atomic_exchange_explicit(&handle->signaled, false, memory_order_release);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user