5 #include <Poco/Mutex.h>
7 #include "util/Cancellable.h"
8 #include "util/Loggable.h"
22 void manage(Cancellable::Ptr cancellable);
28 bool unmanage(Cancellable::Ptr cancellable);
36 std::set<Cancellable::Ptr> m_cancellables;
37 Poco::FastMutex m_lock;
Any class that can be cancelled should inherit from this interface. This allows to maintain a set of ...
Definition: Cancellable.h:12
void cancel() override
Cancel all managed Cancellable instances.
Definition: CancellableSet.cpp:43
bool unmanage(Cancellable::Ptr cancellable)
Stop managing the given Cancellable instance.
Definition: CancellableSet.cpp:28
void manage(Cancellable::Ptr cancellable)
Manage the given Cancellable instance. If CancellableSet::cancel() is called, all managed instances a...
Definition: CancellableSet.cpp:18
Definition: Loggable.h:19
Definition: CancellableSet.h:12