C++ Actor Framework 1.0.0
|
A scheduler is responsible for managing the execution of resumables. More...
#include <scheduler.hpp>
Public Member Functions | |
virtual void | schedule (resumable *what)=0 |
Schedules what to run at some point in the future. | |
virtual void | delay (resumable *what)=0 |
Delay the next execution of what . | |
virtual void | start ()=0 |
Starts this scheduler and all of its workers. | |
virtual void | stop ()=0 |
Stops this scheduler and all of its workers. | |
Static Public Member Functions | |
static std::unique_ptr< scheduler > | make_work_stealing (actor_system &sys) |
static std::unique_ptr< scheduler > | make_work_sharing (actor_system &sys) |
A scheduler is responsible for managing the execution of resumables.
|
pure virtual |
Delay the next execution of what
.
Unlike schedule
, this function is not thread-safe and must be called only from the scheduler thread that is currently running.
|
pure virtual |
Schedules what
to run at some point in the future.
@thread-safe
|
pure virtual |
Starts this scheduler and all of its workers.
Implemented in caf::io::network::multiplexer.
|
pure virtual |
Stops this scheduler and all of its workers.
Implemented in caf::io::network::multiplexer.