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
e14558b0
Commit
e14558b0
authored
Sep 21, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect shutdown mode in I/O servants
parent
54164c1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libcaf_io/caf/io/broker_servant.hpp
libcaf_io/caf/io/broker_servant.hpp
+2
-1
No files found.
libcaf_io/caf/io/broker_servant.hpp
View file @
e14558b0
...
@@ -92,7 +92,8 @@ protected:
...
@@ -92,7 +92,8 @@ protected:
invoke_mailbox_element_impl
(
ctx
,
value_
);
invoke_mailbox_element_impl
(
ctx
,
value_
);
// only consume an activity token if actor did not produce them now
// only consume an activity token if actor did not produce them now
if
(
prev
&&
activity_tokens_
&&
--
(
*
activity_tokens_
)
==
0
)
{
if
(
prev
&&
activity_tokens_
&&
--
(
*
activity_tokens_
)
==
0
)
{
if
(
this
->
parent
()
->
getf
(
abstract_actor
::
is_terminated_flag
))
if
(
this
->
parent
()
->
getf
(
abstract_actor
::
is_shutting_down_flag
|
abstract_actor
::
is_terminated_flag
))
return
false
;
return
false
;
// tell broker it entered passive mode, this can result in
// tell broker it entered passive mode, this can result in
// producing, why we check the condition again afterwards
// producing, why we check the condition again afterwards
...
...
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