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
9b6f4a1f
Commit
9b6f4a1f
authored
Aug 24, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary includes
parent
d95c4492
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
gen_server/parallel_send.cpp
gen_server/parallel_send.cpp
+2
-4
gen_server/sequential_send.cpp
gen_server/sequential_send.cpp
+3
-4
No files found.
gen_server/parallel_send.cpp
View file @
9b6f4a1f
#include <iostream>
#include "cppa/cppa.hpp"
#include "cppa/to_string.hpp"
#include "cppa/scheduler.hpp"
#include "cppa/detail/task_scheduler.hpp"
#include <boost/progress.hpp>
using
std
::
cout
;
...
...
@@ -44,7 +41,7 @@ long the_test(int msg_count)
auto
counter
=
spawn
(
counter_actor
);
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
*>
()
>>
[]()
{
};
for
(
int
i
=
1
;
i
<
(
msg_count
/
1000
);
++
i
)
...
...
@@ -77,6 +74,7 @@ void run_test(int msg_count)
int
main
()
{
run_test
(
3000000
);
await_all_others_done
();
return
0
;
}
gen_server/sequential_send.cpp
View file @
9b6f4a1f
#include <iostream>
#include "cppa/cppa.hpp"
#include "cppa/to_string.hpp"
#include "cppa/scheduler.hpp"
#include "cppa/detail/task_scheduler.hpp"
#include <boost/progress.hpp>
using
std
::
cout
;
...
...
@@ -55,12 +52,14 @@ void run_test(int msg_count)
auto
elapsed
=
t0
.
elapsed
();
cout
<<
"Count is "
<<
count
<<
endl
<<
"Test took "
<<
elapsed
<<
" seconds"
<<
endl
<<
"Throughput = "
<<
(
msg_count
/
elapsed
)
<<
" per sec"
<<
endl
;
<<
"Throughput = "
<<
(
msg_count
/
elapsed
)
<<
" per sec"
<<
endl
;
}
int
main
()
{
run_test
(
3000000
);
await_all_others_done
();
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