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
1bfe10c2
Commit
1bfe10c2
authored
Jan 21, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark update
parent
5ccd3a08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
benchmarks/theron_actor_creation.cpp
benchmarks/theron_actor_creation.cpp
+3
-6
No files found.
benchmarks/theron_actor_creation.cpp
View file @
1bfe10c2
...
...
@@ -9,13 +9,10 @@
#include "utility.hpp"
using
std
::
cerr
;
using
std
::
cout
;
using
std
::
endl
;
using
std
::
int64_t
;
using
std
::
uint32_t
;
struct
spread
{
int
value
;
};
struct
result
{
uint32_t
value
;
};
...
...
@@ -24,8 +21,6 @@ using namespace Theron;
struct
testee
:
Actor
{
typedef
struct
{
Address
arg0
;
}
Parameters
;
Address
m_parent
;
bool
m_first_result_received
;
uint32_t
m_first_result
;
...
...
@@ -58,11 +53,13 @@ struct testee : Actor
}
else
{
Send
(
result
{
m_first_result
+
arg
.
value
},
m_parent
);
m_children
.
clear
();
Send
(
result
{
m_first_result
+
arg
.
value
},
m_parent
);
}
}
typedef
struct
{
Address
arg0
;
}
Parameters
;
testee
(
Parameters
const
&
p
)
:
m_parent
(
p
.
arg0
),
m_first_result_received
(
false
)
{
RegisterHandler
(
this
,
&
testee
::
spread_handler
);
...
...
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