Commit 6655cc42 authored by Dominik Charousset's avatar Dominik Charousset

added shutdown() to all examples

parent 2e276627
...@@ -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;
} }
...@@ -58,6 +58,7 @@ int main(int, char**) { ...@@ -58,6 +58,7 @@ int main(int, char**) {
<< endl; << endl;
} }
); );
shutdown();
return 0; return 0;
} }
...@@ -76,6 +76,7 @@ int main(int, char**) { ...@@ -76,6 +76,7 @@ int main(int, char**) {
<< endl; << endl;
} }
); );
shutdown();
return 0; return 0;
} }
...@@ -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;
} }
...@@ -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;
} }
...@@ -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;
} }
...@@ -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;
} }
...@@ -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;
} }
...@@ -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;
} }
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