libcaf  0.15.3
Public Types | Public Member Functions | Protected Member Functions | List of all members
caf::event_based_actor Class Reference

A cooperatively scheduled, event-based actor implementation. More...

#include <event_based_actor.hpp>

Inherits local_actor, with< mixin::sender, mixin::requester, mixin::subscriber, mixin::behavior_changer >, and caf::dynamically_typed_actor_base.

Public Types

using signatures = none_t
 Required by spawn for type deduction.
 
using behavior_type = behavior
 Required by spawn for type deduction.
 

Public Member Functions

 event_based_actor (actor_config &cfg)
 
void initialize () override
 

Protected Member Functions

virtual behavior make_behavior ()
 Returns the initial actor behavior.
 

Detailed Description

A cooperatively scheduled, event-based actor implementation.

This is the recommended base class for user-defined actors.

Examples:
dancing_kirby.cpp, dining_philosophers.cpp, and hello_world.cpp.

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