BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
AnyAsyncWork.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 #include <Poco/Timespan.h>
5 
6 #include "util/Cancellable.h"
7 
8 namespace BeeeOn {
9 
15 class AnyAsyncWork : public Cancellable {
16 public:
17  typedef Poco::SharedPtr<AnyAsyncWork> Ptr;
18 
19  virtual ~AnyAsyncWork();
20 
25  virtual bool tryJoin(const Poco::Timespan &timeout) = 0;
26 };
27 
28 }
Any class that can be cancelled should inherit from this interface. This allows to maintain a set of ...
Definition: Cancellable.h:12
AnyAsyncWork represents an asynchronous work to be processed. Such work is defined only in terms of e...
Definition: AnyAsyncWork.h:15
virtual bool tryJoin(const Poco::Timespan &timeout)=0