C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::scheduler Class Referenceabstract

A scheduler is responsible for managing the execution of resumables. More...

#include <scheduler.hpp>

Inheritance diagram for caf::scheduler:
caf::io::network::multiplexer

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< schedulermake_work_stealing (actor_system &sys)
 
static std::unique_ptr< schedulermake_work_sharing (actor_system &sys)
 

Detailed Description

A scheduler is responsible for managing the execution of resumables.

Member Function Documentation

◆ delay()

virtual void caf::scheduler::delay ( resumable * what)
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.

◆ schedule()

virtual void caf::scheduler::schedule ( resumable * what)
pure virtual

Schedules what to run at some point in the future.

@thread-safe

◆ start()

virtual void caf::scheduler::start ( )
pure virtual

Starts this scheduler and all of its workers.

Implemented in caf::io::network::multiplexer.

◆ stop()

virtual void caf::scheduler::stop ( )
pure virtual

Stops this scheduler and all of its workers.

Implemented in caf::io::network::multiplexer.


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