fix(AsyncChannel): race condition in AsyncChannel close/log #1039

This commit is contained in:
Alex Fabijanic
2022-06-10 19:56:29 -05:00
parent fbdb6120aa
commit 2bd71b4ea4
3 changed files with 48 additions and 8 deletions

View File

@@ -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;
};