mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 16:54:32 +00:00
fix(platform): synchronize POSIX event clearing with its mutex (#172)
This commit is contained in:
1 parent
3387805deb
commit
a84a69a27e
1 file changed
+2
@@ -360,7 +360,9 @@ void PltClearEvent(PLT_EVENT* event) {
|
||||
#if defined(LC_WINDOWS)
|
||||
ResetEvent(*event);
|
||||
#else
|
||||
PltLockMutex(&event->mutex);
|
||||
event->signalled = false;
|
||||
PltUnlockMutex(&event->mutex);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user