libcppa  Version 0.1
Public Member Functions
cppa::local_actor Class Reference

#include <local_actor.hpp>

Inheritance diagram for cppa::local_actor:
cppa::actor cppa::channel cppa::ref_counted cppa::detail::abstract_actor< local_actor > cppa::detail::converted_thread_context cppa::detail::scheduled_actor

List of all members.

Public Member Functions

virtual void quit (std::uint32_t reason)=0
void enqueue (actor *sender, const any_tuple &msg)

Detailed Description

Base class for local running Actors.


Member Function Documentation

void cppa::local_actor::enqueue ( actor sender,
const any_tuple msg 
) [virtual]

Default implementation of channel::enqueue(const message&).

Calls mailbox().enqueue(msg).

Implements cppa::channel.

virtual void cppa::local_actor::quit ( std::uint32_t  reason) [pure virtual]

Finishes execution of this actor.

Cause this actor to send an exit signal to all of its linked actors, sets its state to exited and throws actor_exited to cleanup the stack.

Parameters:
reasonExit reason that will be send to linked actors.
Exceptions:
actor_exited

Implemented in cppa::detail::scheduled_actor, and cppa::detail::converted_thread_context.


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