[common] event: lgResetEvent should return the last state of the event

This commit is contained in:
Geoffrey McRae committed 2021-08-01 17:14:58 +10:00
1 parent a094fb8104
commit 90b90e667a
1 file changed
+1 -2
+1 -2
View File
@@ -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);
}