Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
7dd7e7d3
Commit
7dd7e7d3
authored
Jun 29, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix manual refs
parent
786ece05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
examples/composition/calculator_behavior.cpp
examples/composition/calculator_behavior.cpp
+1
-1
examples/hello_world.cpp
examples/hello_world.cpp
+2
-1
examples/message_passing/divider.cpp
examples/message_passing/divider.cpp
+3
-3
examples/message_passing/request.cpp
examples/message_passing/request.cpp
+1
-1
No files found.
examples/composition/calculator_behavior.cpp
View file @
7dd7e7d3
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// This file is partially included in the manual, do not modify
// This file is partially included in the manual, do not modify
// without updating the references in the *.tex files!
// without updating the references in the *.tex files!
// Manual references: lines
18-50
(Actor.tex)
// Manual references: lines
20-52
(Actor.tex)
#include <iostream>
#include <iostream>
...
...
examples/hello_world.cpp
View file @
7dd7e7d3
...
@@ -35,7 +35,8 @@ void hello_world(event_based_actor* self, const actor& buddy) {
...
@@ -35,7 +35,8 @@ void hello_world(event_based_actor* self, const actor& buddy) {
int
main
()
{
int
main
()
{
// our CAF environment
// our CAF environment
actor_system
system
;
actor_system_config
cfg
;
actor_system
system
{
cfg
};
// create a new actor that calls 'mirror()'
// create a new actor that calls 'mirror()'
auto
mirror_actor
=
system
.
spawn
(
mirror
);
auto
mirror_actor
=
system
.
spawn
(
mirror
);
// create another actor that calls 'hello_world(mirror_actor)';
// create another actor that calls 'hello_world(mirror_actor)';
...
...
examples/message_passing/divider.cpp
View file @
7dd7e7d3
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* A very basic, interactive divider. *
* A very basic, interactive divider. *
\******************************************************************************/
\******************************************************************************/
// Manual refs: 19-25, 35-48, 6
3-73
(MessagePassing);
// Manual refs: 19-25, 35-48, 6
8-77
(MessagePassing);
// 19-34, 5
1-56
(Error)
// 19-34, 5
0-58
(Error)
#include <iostream>
#include <iostream>
...
@@ -33,7 +33,7 @@ std::string to_string(math_error x) {
...
@@ -33,7 +33,7 @@ std::string to_string(math_error x) {
}
}
}
}
using
div_atom
=
atom_constant
<
atom
(
"
add
"
)
>
;
using
div_atom
=
atom_constant
<
atom
(
"
div
"
)
>
;
using
divider
=
typed_actor
<
replies_to
<
div_atom
,
double
,
double
>::
with
<
double
>>
;
using
divider
=
typed_actor
<
replies_to
<
div_atom
,
double
,
double
>::
with
<
double
>>
;
...
...
examples/message_passing/request.cpp
View file @
7dd7e7d3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
// This file is partially included in the manual, do not modify
// This file is partially included in the manual, do not modify
// without updating the references in the *.tex files!
// without updating the references in the *.tex files!
// Manual references: lines 20-37, 39-51, 53-
58, 62-64
(MessagePassing.tex)
// Manual references: lines 20-37, 39-51, 53-
64, 68-70
(MessagePassing.tex)
#include <vector>
#include <vector>
#include <chrono>
#include <chrono>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment