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
a32890db
Commit
a32890db
authored
Jun 29, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log whenever a stream handler is removed
parent
b71aa335
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 @
a32890db
...
...
@@ -650,6 +650,7 @@ bool scheduled_actor::finalize() {
bool
scheduled_actor
::
handle_stream_msg
(
mailbox_element
&
x
,
behavior
*
active_behavior
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
x
));
CAF_ASSERT
(
x
.
content
().
match_elements
<
stream_msg
>
());
auto
&
sm
=
x
.
content
().
get_mutable_as
<
stream_msg
>
(
0
);
auto
e
=
streams_
.
end
();
...
...
@@ -665,6 +666,9 @@ bool scheduled_actor::handle_stream_msg(mailbox_element& x,
}
else
if
(
i
!=
e
)
{
if
(
i
->
second
->
done
())
{
streams_
.
erase
(
i
);
CAF_LOG_DEBUG
(
"Stream is done and could be safely erased"
<<
CAF_ARG
(
sm
.
sid
)
<<
", remaining streams ="
<<
deep_to_string
(
streams_
).
c_str
());
if
(
streams_
.
empty
()
&&
!
has_behavior
())
quit
(
exit_reason
::
normal
);
}
...
...
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