mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
fix(AsyncChannel): race condition in AsyncChannel close/log #1039
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "Poco/Runnable.h"
|
||||
#include "Poco/AutoPtr.h"
|
||||
#include "Poco/NotificationQueue.h"
|
||||
#include <atomic>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -110,6 +111,7 @@ private:
|
||||
NotificationQueue _queue;
|
||||
std::size_t _queueSize = 0;
|
||||
std::size_t _dropCount = 0;
|
||||
std::atomic<bool> _closed;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user