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
2c5bd815
Commit
2c5bd815
authored
Sep 11, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Count up- and downstream messages for throughput
parent
7c523501
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+5
-2
No files found.
libcaf_core/src/scheduled_actor.cpp
View file @
2c5bd815
...
...
@@ -274,7 +274,8 @@ operator()(size_t, upstream_queue&, mailbox_element& x) {
auto
&
um
=
x
.
content
().
get_mutable_as
<
upstream_msg
>
(
0
);
upstream_msg_visitor
f
{
self
,
um
};
visit
(
f
,
um
.
content
);
return
intrusive
::
task_result
::
resume
;
return
++
handled_msgs
<
max_throughput
?
intrusive
::
task_result
::
resume
:
intrusive
::
task_result
::
stop_all
;
}
namespace
{
...
...
@@ -333,7 +334,9 @@ operator()(size_t, downstream_queue& qs, stream_slot,
CAF_ASSERT
(
x
.
content
().
type_token
()
==
make_type_token
<
downstream_msg
>
());
auto
&
dm
=
x
.
content
().
get_mutable_as
<
downstream_msg
>
(
0
);
downstream_msg_visitor
f
{
self
,
qs
,
q
,
dm
};
return
visit
(
f
,
dm
.
content
);
auto
res
=
visit
(
f
,
dm
.
content
);
return
++
handled_msgs
<
max_throughput
?
res
:
intrusive
::
task_result
::
stop_all
;
}
intrusive
::
task_result
...
...
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