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
00e1bce2
Commit
00e1bce2
authored
Mar 17, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emit receive entries for up- and downstream msgs
parent
579bb3ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+4
-0
No files found.
libcaf_core/src/scheduled_actor.cpp
View file @
00e1bce2
...
@@ -269,6 +269,8 @@ struct upstream_msg_visitor {
...
@@ -269,6 +269,8 @@ struct upstream_msg_visitor {
intrusive
::
task_result
scheduled_actor
::
mailbox_visitor
::
intrusive
::
task_result
scheduled_actor
::
mailbox_visitor
::
operator
()(
size_t
,
upstream_queue
&
,
mailbox_element
&
x
)
{
operator
()(
size_t
,
upstream_queue
&
,
mailbox_element
&
x
)
{
CAF_ASSERT
(
x
.
content
().
type_token
()
==
make_type_token
<
upstream_msg
>
());
CAF_ASSERT
(
x
.
content
().
type_token
()
==
make_type_token
<
upstream_msg
>
());
self
->
current_mailbox_element
(
&
x
);
CAF_LOG_RECEIVE_EVENT
((
&
x
));
auto
&
um
=
x
.
content
().
get_mutable_as
<
upstream_msg
>
(
0
);
auto
&
um
=
x
.
content
().
get_mutable_as
<
upstream_msg
>
(
0
);
upstream_msg_visitor
f
{
self
,
um
};
upstream_msg_visitor
f
{
self
,
um
};
visit
(
f
,
um
.
content
);
visit
(
f
,
um
.
content
);
...
@@ -326,6 +328,8 @@ operator()(size_t, downstream_queue& qs, stream_slot,
...
@@ -326,6 +328,8 @@ operator()(size_t, downstream_queue& qs, stream_slot,
policy
::
downstream_messages
::
nested_queue_type
&
q
,
policy
::
downstream_messages
::
nested_queue_type
&
q
,
mailbox_element
&
x
)
{
mailbox_element
&
x
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
x
)
<<
CAF_ARG
(
handled_msgs
));
CAF_LOG_TRACE
(
CAF_ARG
(
x
)
<<
CAF_ARG
(
handled_msgs
));
self
->
current_mailbox_element
(
&
x
);
CAF_LOG_RECEIVE_EVENT
((
&
x
));
CAF_ASSERT
(
x
.
content
().
type_token
()
==
make_type_token
<
downstream_msg
>
());
CAF_ASSERT
(
x
.
content
().
type_token
()
==
make_type_token
<
downstream_msg
>
());
auto
&
dm
=
x
.
content
().
get_mutable_as
<
downstream_msg
>
(
0
);
auto
&
dm
=
x
.
content
().
get_mutable_as
<
downstream_msg
>
(
0
);
downstream_msg_visitor
f
{
self
,
qs
,
q
,
dm
};
downstream_msg_visitor
f
{
self
,
qs
,
q
,
dm
};
...
...
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