fix: g++ C++20 warnings #3734

This commit is contained in:
Alex Fabijanic
2022-08-06 22:28:45 +02:00
parent 42b6d3ace4
commit dbb7b5f8e2
6 changed files with 51 additions and 10 deletions

View File

@@ -22,6 +22,7 @@
#include "Poco/Exception.h"
#include <pthread.h>
#include <errno.h>
#include <atomic>
namespace Poco {
@@ -37,10 +38,10 @@ protected:
bool waitImpl(long milliseconds);
private:
volatile int _n;
int _max;
pthread_mutex_t _mutex;
pthread_cond_t _cond;
std::atomic<int> _n;
int _max;
pthread_mutex_t _mutex;
pthread_cond_t _cond;
};