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
13a142eb
Commit
13a142eb
authored
Jun 27, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move done() implementation to stream_stage
parent
5e6c3f96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
libcaf_core/caf/detail/stream_stage_impl.hpp
libcaf_core/caf/detail/stream_stage_impl.hpp
+0
-5
libcaf_core/caf/stream_stage.hpp
libcaf_core/caf/stream_stage.hpp
+7
-0
No files found.
libcaf_core/caf/detail/stream_stage_impl.hpp
View file @
13a142eb
...
...
@@ -57,11 +57,6 @@ public:
// -- implementation of virtual functions ------------------------------------
bool
done
()
const
override
{
return
!
this
->
continuous
()
&&
this
->
pending_handshakes_
==
0
&&
this
->
inbound_paths_
.
empty
()
&&
this
->
out_
.
clean
();
}
void
handle
(
inbound_path
*
,
downstream_msg
::
batch
&
x
)
override
{
CAF_LOG_TRACE
(
CAF_ARG
(
x
));
using
vec_type
=
std
::
vector
<
input_type
>
;
...
...
libcaf_core/caf/stream_stage.hpp
View file @
13a142eb
...
...
@@ -46,6 +46,13 @@ public:
// nop
}
// -- overridden member functions --------------------------------------------
bool
done
()
const
override
{
return
!
this
->
continuous
()
&&
this
->
inbound_paths_
.
empty
()
&&
this
->
pending_handshakes_
==
0
&&
this
->
out_
.
clean
();
}
bool
idle
()
const
noexcept
override
{
// A stage is idle if it can't make progress on its downstream manager or
// if it has no pending work at all.
...
...
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