Class Actor
Defined in File actor.hpp
Inheritance Relationships
Derived Type
private actorpp::RecvThread(Class RecvThread)
Class Documentation
-
class Actor
An actor, whose only ability is to wait for data in associated channels. To run an actor in another thread, see ActorThread
Subclassed by actorpp::RecvThread
Public Functions
-
inline Actor()
-
template<typename ...T>
inline int wait(Channel<T>&... c) Wait for data to arrive in one of n channels; returns the index of the first channel that has available data. All channels must be associated with this actor.
-
template<class Clock, class Duration, typename ...T>
inline int wait_until(const std::chrono::time_point<Clock, Duration> &timeout_time, Channel<T>&... c) Wait for data to arrive in one of n channels with a timeout; returns the index of the first channel that has available data, or -1 if timeout_time is reached. All channels must be associated with this actor.
-
template<class Rep, class Period, typename ...T>
inline int wait_for(const std::chrono::duration<Rep, Period> &rel_time, Channel<T>&... c) Wait for data to arrive in one of n channels with a timeout; returns the index of the first channel that has available data, or -1 if rel_time has elapsed. All channels must be associated with this actor.
-
inline Actor()