Commit 9917b4dd authored by Dominik Charousset's avatar Dominik Charousset

Remove `self` from docu for class-based actors

parent 4517bafb
...@@ -45,7 +45,7 @@ It is worth mentioning that user-implemented groups can be build on top of IP mu ...@@ -45,7 +45,7 @@ It is worth mentioning that user-implemented groups can be build on top of IP mu
\label{Sec::Group::Spawn} \label{Sec::Group::Spawn}
The function \lstinline^spawn_in_group^ can be used to create actors as members of a group. The function \lstinline^spawn_in_group^ can be used to create actors as members of a group.
The function causes the newly created actors to call \lstinline^self->join(...)^ immediately and before \lstinline^spawn_in_group^ returns. The function causes the newly created actors to call \lstinline^join(...)^ immediately and before \lstinline^spawn_in_group^ returns.
The usage of \lstinline^spawn_in_group^ is equal to \lstinline^spawn^, except for an additional group argument. The usage of \lstinline^spawn_in_group^ is equal to \lstinline^spawn^, except for an additional group argument.
The group handle is always the first argument, as shown in the examples below. The group handle is always the first argument, as shown in the examples below.
......
...@@ -29,7 +29,7 @@ This base class simply returns \lstinline^init_state^ (defined in the subclass) ...@@ -29,7 +29,7 @@ This base class simply returns \lstinline^init_state^ (defined in the subclass)
struct printer : sb_actor<printer> { struct printer : sb_actor<printer> {
behavior init_state { behavior init_state {
others() >> [] { others() >> [] {
cout << to_string(self->last_received()) << endl; cout << to_string(last_received()) << endl;
} }
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment