libqi-api
2.8.7.4
|
#include <actor.hpp>
Public Member Functions | |
Actor ()=default | |
Actor (const Actor &)=delete | |
Actor (qi::ExecutionContext &ec) | |
virtual | ~Actor ()=default |
qi::Strand * | strand () const |
template<class... Args> | |
auto | stranded (Args &&...args) const -> decltype(_strand.schedulerFor(std::forward< Args >(args)...)) |
template<class... Args> | |
auto | strandedUnwrapped (Args &&...args) const -> decltype(_strand.unwrappedSchedulerFor(std::forward< Args >(args)...)) |
template<class... Args> | |
auto | async (Args &&...args) const -> decltype(_strand.async(std::forward< Args >(args)...)) |
template<class... Args> | |
auto | asyncDelay (Args &&...args) const -> decltype(_strand.asyncDelay(std::forward< Args >(args)...)) |
template<class... Args> | |
auto | asyncAt (Args &&...args) const -> decltype(_strand.asyncAt(std::forward< Args >(args)...)) |
void | joinTasks () |
Class that represents an actor.
Inherit from this class if you want your class to be an actor (as in the actor model). This means that your class will receive "messages" and not be called. In other words, there will never be to calls to your object in parallel, they will be queued.
|
default |
|
delete |
|
inlineexplicit |
|
virtualdefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |