Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
f3ed7ade
Commit
f3ed7ade
authored
Apr 17, 2019
by
Hauke Goldhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add review changes
parent
f742ac1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
libcaf_bb/caf/bb/stream_reader.hpp
libcaf_bb/caf/bb/stream_reader.hpp
+2
-3
No files found.
libcaf_bb/caf/bb/stream_reader.hpp
View file @
f3ed7ade
...
...
@@ -54,7 +54,7 @@ struct stream_reader_state {
/// Gives this actor a useful name in CAF logs.
const
char
*
name
;
///
Input stream we are about to stream
///
User-defined data source for reading ASCII or UTF-8 input line by line.
// TODO: change after having raised the minimum GCC version to 5.
std
::
unique_ptr
<
InputStream
>
input
;
...
...
@@ -76,7 +76,7 @@ void stream_reader(stream_source_type<InputStream>* self,
self
->
state
.
init
(
std
::
move
(
input
));
// Fail early if we got nothing to stream.
if
(
self
->
state
.
at_end
())
self
->
quit
()
;
return
;
// Spin up stream manager and connect the first sink.
auto
src
=
self
->
make_source
(
std
::
move
(
sink
),
...
...
@@ -97,7 +97,6 @@ void stream_reader(stream_source_type<InputStream>* self,
[
self
](
const
Policy
&
pol
)
{
return
self
->
state
.
at_end
();
});
// Add the remaining sinks.
unit
(
src
.
ptr
()
->
add_outbound_path
(
sinks
)...);
self
->
quit
();
}
}
// namespace bb
...
...
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