WorkQueueInterface¶
-
class
kanzi::connect
::
WorkQueueInterface
¶ Interface for the work queue. Used to propagate work items from services to event-based work loop.
Subclassed by Client, ClientRemoteServiceHost, WorkQueueProxyInterface
Public Functions
-
inline virtual
~WorkQueueInterface
()¶ Virtual destructor (for SWIG).
-
inline virtual int64_t
allocateUniqueHandle
()¶ Optionally implementable method that should return a handle that can later on be used cancel work item holding that identifier.
-
inline virtual void
cancelWorkItem
(int64_t handle)¶ Cancels a work item holding an handle previously allocated using allocateUniqueHandle()
- Parameters
handle – the handle.
Function to call when there is work to be done.
- Parameters
workItem – item to be put into work queue
-
inline virtual