From 0d696eaf57026e6f70998265e36ad97dfaf216d7 Mon Sep 17 00:00:00 2001 From: cunj123 Date: Tue, 24 Oct 2023 14:27:25 +0200 Subject: [PATCH] fix: make POSIX event thread safe --- Foundation/include/Poco/Event_POSIX.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/Event_POSIX.h b/Foundation/include/Poco/Event_POSIX.h index a6368bd25..0852563c7 100644 --- a/Foundation/include/Poco/Event_POSIX.h +++ b/Foundation/include/Poco/Event_POSIX.h @@ -39,8 +39,8 @@ protected: void resetImpl(); private: - bool _auto; - bool _state; + std::atomic _auto; + std::atomic _state; pthread_mutex_t _mutex; pthread_cond_t _cond; };