ledger-core
|
#include <ThreadDispatcher.hpp>
Public Member Functions | |
virtual std::shared_ptr< ExecutionContext > | getSerialExecutionContext (const std::string &name)=0 |
virtual std::shared_ptr< ExecutionContext > | getThreadPoolExecutionContext (const std::string &name)=0 |
virtual std::shared_ptr< ExecutionContext > | getMainExecutionContext ()=0 |
virtual std::shared_ptr< Lock > | newLock ()=0 |
Class representing a thread dispatcher
|
pure virtual |
Get main execution context (generally where tasks that should never get blocked are executed)
|
pure virtual |
Get an execution context where tasks are executed sequentially
name,string,name | of execution context to retrieve |
|
pure virtual |
Get an execution context where tasks are executed in parallel thanks to a thread pool where a system of inter-thread communication was designed
name,string,name | of execution context to retrieve |
|
pure virtual |
Get lock to handle multithreading