Async notification center (dispatch notifications asynchronously) (#4957)

This commit is contained in:
Matej Kenda
2025-06-12 21:12:57 +02:00
committed by GitHub
parent 1782761914
commit 735e174d90
23 changed files with 866 additions and 323 deletions

View File

@@ -19,14 +19,20 @@
#include "Poco/Foundation.h"
#include "Poco/Mutex.h"
#include "Poco/RefCountedObject.h"
#include "Poco/AutoPtr.h"
#include "Poco/Any.h"
#include <memory>
namespace Poco {
using NotificationResult = std::pair<std::string, Poco::Any>;
/// Used for synchronous notification processing.
/// Observer shall return a pair containing a string identifier
/// that is interpreted by the caller and an Any object for
/// the payload (result).
class Foundation_API Notification: public RefCountedObject
/// The base class for all notification classes used