mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
fix: g++ C++20 warnings #3734
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user