29 #include "Polymorphic.h"
46 virtual void post(std::function<
void ()> work) = 0;
A dispatcher interface.
Definition: IDispatcher.h:41
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.
Inherit from this from all types that have virtual functions.
Definition: Polymorphic.h:39