|
tin
1.5.9
|
#include <actor.h>


Public Member Functions | |
| constexpr | actor_group (Actors &... actors) |
| bool | step () |
| std::size_t | drain () |
| bool | empty () const |
| Report whether every actor currently has no pending work. More... | |
| std::size_t | pending_events () const |
| Return the sum of each actor's pending-event count. More... | |
Non-owning deterministic stepping view over several actors.
actor_group visits actors in declaration order. It does not own the actors, allocate, create threads, or register callbacks.
|
inlineexplicitconstexpr |
Bind the group to existing actors.
The group stores pointers. The referenced actors must outlive the group.
|
inline |
Repeatedly call step() until no actor reports progress.
Returns the number of successful stepping rounds. A round counts when at least one actor made progress.
|
inline |
Report whether every actor currently has no pending work.
|
inline |
Return the sum of each actor's pending-event count.
|
inline |
Give each actor at most one chance to make immediate progress.
Returns true if any actor reports progress.