fix: make POSIX event thread safe

This commit is contained in:
cunj123 2023-10-24 14:27:25 +02:00 committed by Alex Fabijanic
parent efd0878664
commit 0d696eaf57

View File

@ -39,8 +39,8 @@ protected:
void resetImpl(); void resetImpl();
private: private:
bool _auto; std::atomic<bool> _auto;
bool _state; std::atomic<bool> _state;
pthread_mutex_t _mutex; pthread_mutex_t _mutex;
pthread_cond_t _cond; pthread_cond_t _cond;
}; };