Commit 9b6f4a1f authored by neverlord's avatar neverlord

removed unnecessary includes

parent d95c4492
#include <iostream> #include <iostream>
#include "cppa/cppa.hpp" #include "cppa/cppa.hpp"
#include "cppa/to_string.hpp"
#include "cppa/scheduler.hpp"
#include "cppa/detail/task_scheduler.hpp"
#include <boost/progress.hpp> #include <boost/progress.hpp>
using std::cout; using std::cout;
...@@ -44,7 +41,7 @@ long the_test(int msg_count) ...@@ -44,7 +41,7 @@ long the_test(int msg_count)
auto counter = spawn(counter_actor); auto counter = spawn(counter_actor);
for (int i = 1; i < (msg_count / 1000); ++i) for (int i = 1; i < (msg_count / 1000); ++i)
{ {
monitor(spawn(send_range, counter, self_ptr, (i-1)*1000, i*1000)); spawn(send_range, counter, self_ptr, (i-1)*1000, i*1000);
} }
auto rule = on<atom("Done"), any_type*>() >> []() { }; auto rule = on<atom("Done"), any_type*>() >> []() { };
for (int i = 1; i < (msg_count / 1000); ++i) for (int i = 1; i < (msg_count / 1000); ++i)
...@@ -77,6 +74,7 @@ void run_test(int msg_count) ...@@ -77,6 +74,7 @@ void run_test(int msg_count)
int main() int main()
{ {
run_test(3000000); run_test(3000000);
await_all_others_done();
return 0; return 0;
} }
#include <iostream> #include <iostream>
#include "cppa/cppa.hpp" #include "cppa/cppa.hpp"
#include "cppa/to_string.hpp"
#include "cppa/scheduler.hpp"
#include "cppa/detail/task_scheduler.hpp"
#include <boost/progress.hpp> #include <boost/progress.hpp>
using std::cout; using std::cout;
...@@ -55,12 +52,14 @@ void run_test(int msg_count) ...@@ -55,12 +52,14 @@ void run_test(int msg_count)
auto elapsed = t0.elapsed(); auto elapsed = t0.elapsed();
cout << "Count is " << count << endl cout << "Count is " << count << endl
<< "Test took " << elapsed << " seconds" << endl << "Test took " << elapsed << " seconds" << endl
<< "Throughput = " << (msg_count / elapsed) << " per sec" << endl; << "Throughput = " << (msg_count / elapsed)
<< " per sec" << endl;
} }
int main() int main()
{ {
run_test(3000000); run_test(3000000);
await_all_others_done();
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