Skip to content

Commit

Permalink
fix(Event): POSIX Event state need not be atomic pocoproject#3699
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Jul 19, 2022
1 parent 0817b25 commit d9ea0f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Foundation/include/Poco/Event_POSIX.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class Foundation_API EventImpl
void resetImpl();

private:
bool _auto;
std::atomic<bool> _state;
pthread_mutex_t _mutex;
pthread_cond_t _cond;
bool _auto;
bool _state;
pthread_mutex_t _mutex;
pthread_cond_t _cond;
};


Expand Down

0 comments on commit d9ea0f5

Please sign in to comment.