Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Member Functions | List of all members
AICommon::IDispatcher Class Referenceabstract

A dispatcher interface. More...

#include <IDispatcher.h>

Inheritance diagram for AICommon::IDispatcher:
Inheritance graph
[legend]
Collaboration diagram for AICommon::IDispatcher:
Collaboration graph
[legend]

Public Member Functions

virtual void post (std::function< void()> work)=0
 
virtual void sync ()=0
 Ensures that anything that was in the queue before the call has been executed before returning.
 
virtual bool invokedFromDispatcherThread ()=0
 If it is a threaded dispatcher then the dispatcher thread id, otherwise nullptr.
 

Detailed Description

A dispatcher interface.

Member Function Documentation

◆ post()

virtual void AICommon::IDispatcher::post ( std::function< void()>  work)
pure virtual

Post an item of work to be executed.

Implemented in DobbyProxyNotifyDispatcher, and AICommon::ThreadedDispatcher.


The documentation for this class was generated from the following file: