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
6655cc42
Commit
6655cc42
authored
Aug 22, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added shutdown() to all examples
parent
2e276627
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
1 deletion
+10
-1
examples/announce_example_1.cpp
examples/announce_example_1.cpp
+1
-0
examples/announce_example_2.cpp
examples/announce_example_2.cpp
+1
-0
examples/announce_example_3.cpp
examples/announce_example_3.cpp
+1
-0
examples/announce_example_4.cpp
examples/announce_example_4.cpp
+1
-0
examples/announce_example_5.cpp
examples/announce_example_5.cpp
+1
-1
examples/dancing_kirby.cpp
examples/dancing_kirby.cpp
+2
-0
examples/dining_philosophers.cpp
examples/dining_philosophers.cpp
+1
-0
examples/hello_world_example.cpp
examples/hello_world_example.cpp
+1
-0
examples/math_actor_example.cpp
examples/math_actor_example.cpp
+1
-0
No files found.
examples/announce_example_1.cpp
View file @
6655cc42
...
@@ -77,6 +77,7 @@ int main(int, char**) {
...
@@ -77,6 +77,7 @@ int main(int, char**) {
cout
<<
"},"
<<
val
.
b
<<
")"
<<
endl
;
cout
<<
"},"
<<
val
.
b
<<
")"
<<
endl
;
}
}
);
);
shutdown
();
return
0
;
return
0
;
}
}
examples/announce_example_2.cpp
View file @
6655cc42
...
@@ -58,6 +58,7 @@ int main(int, char**) {
...
@@ -58,6 +58,7 @@ int main(int, char**) {
<<
endl
;
<<
endl
;
}
}
);
);
shutdown
();
return
0
;
return
0
;
}
}
examples/announce_example_3.cpp
View file @
6655cc42
...
@@ -76,6 +76,7 @@ int main(int, char**) {
...
@@ -76,6 +76,7 @@ int main(int, char**) {
<<
endl
;
<<
endl
;
}
}
);
);
shutdown
();
return
0
;
return
0
;
}
}
examples/announce_example_4.cpp
View file @
6655cc42
...
@@ -122,6 +122,7 @@ int main(int, char**) {
...
@@ -122,6 +122,7 @@ int main(int, char**) {
cout
<<
to_string
(
val
)
<<
endl
;
cout
<<
to_string
(
val
)
<<
endl
;
}
}
);
);
shutdown
();
return
0
;
return
0
;
}
}
examples/announce_example_5.cpp
View file @
6655cc42
...
@@ -205,6 +205,6 @@ int main() {
...
@@ -205,6 +205,6 @@ int main() {
cout
<<
"to_string: "
<<
to_string
(
self
->
last_dequeued
())
<<
endl
;
cout
<<
"to_string: "
<<
to_string
(
self
->
last_dequeued
())
<<
endl
;
}
}
);
);
shutdown
();
return
0
;
return
0
;
}
}
examples/dancing_kirby.cpp
View file @
6655cc42
...
@@ -52,4 +52,6 @@ int main() {
...
@@ -52,4 +52,6 @@ int main() {
cout
<<
endl
;
cout
<<
endl
;
dancing_kirby
();
dancing_kirby
();
cout
<<
endl
;
cout
<<
endl
;
shutdown
();
return
0
;
}
}
examples/dining_philosophers.cpp
View file @
6655cc42
...
@@ -194,5 +194,6 @@ int main(int, char**) {
...
@@ -194,5 +194,6 @@ int main(int, char**) {
send
(
dinner_club
,
atom
(
"think"
));
send
(
dinner_club
,
atom
(
"think"
));
// real philosophers are never done
// real philosophers are never done
await_all_others_done
();
await_all_others_done
();
shutdown
();
return
0
;
return
0
;
}
}
examples/hello_world_example.cpp
View file @
6655cc42
...
@@ -33,5 +33,6 @@ int main() {
...
@@ -33,5 +33,6 @@ int main() {
// wait until all other actors we've spawned are done
// wait until all other actors we've spawned are done
await_all_others_done
();
await_all_others_done
();
// done
// done
shutdown
();
return
0
;
return
0
;
}
}
examples/math_actor_example.cpp
View file @
6655cc42
...
@@ -79,6 +79,7 @@ int main() {
...
@@ -79,6 +79,7 @@ int main() {
// wait until all spawned actors are terminated
// wait until all spawned actors are terminated
await_all_others_done
();
await_all_others_done
();
// done
// done
shutdown
();
return
0
;
return
0
;
}
}
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