From a84a69a27e35d7aa6e9294a8b2e50385b52b5f32 Mon Sep 17 00:00:00 2001 From: Ulises Britos Date: Tue, 10 Nov 2026 23:36:43 -0300 Subject: [PATCH] fix(platform): synchronize POSIX event clearing with its mutex (#172) --- src/Platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Platform.c b/src/Platform.c index 458fd98..a8c9b57 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -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 }