mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 02:34:00 +00:00
[common] event: lgResetEvent should return the last state of the event
This commit is contained in:
@@ -203,6 +203,5 @@ bool lgSignalEvent(LGEvent * handle)
|
||||
bool lgResetEvent(LGEvent * handle)
|
||||
{
|
||||
assert(handle);
|
||||
atomic_store_explicit(&handle->signaled, false, memory_order_release);
|
||||
return true;
|
||||
return atomic_exchange_explicit(&handle->signaled, false, memory_order_release);
|
||||
}
|
||||
|
Reference in New Issue
Block a user