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
1d9b8d02
Commit
1d9b8d02
authored
Nov 09, 2017
by
Dominik Charousset
Committed by
Dominik Charousset
Feb 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the gatherer to the scatterer on construction
parent
11fbc9a2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
10 deletions
+18
-10
libcaf_core/caf/detail/pull5_gatherer.hpp
libcaf_core/caf/detail/pull5_gatherer.hpp
+1
-1
libcaf_core/caf/random_gatherer.hpp
libcaf_core/caf/random_gatherer.hpp
+2
-1
libcaf_core/caf/stream_sink_impl.hpp
libcaf_core/caf/stream_sink_impl.hpp
+3
-2
libcaf_core/caf/stream_stage_impl.hpp
libcaf_core/caf/stream_stage_impl.hpp
+3
-3
libcaf_core/caf/terminal_stream_scatterer.hpp
libcaf_core/caf/terminal_stream_scatterer.hpp
+1
-1
libcaf_core/src/pull5_gatherer.cpp
libcaf_core/src/pull5_gatherer.cpp
+2
-1
libcaf_core/src/random_gatherer.cpp
libcaf_core/src/random_gatherer.cpp
+2
-1
libcaf_core/src/terminal_stream_scatterer.cpp
libcaf_core/src/terminal_stream_scatterer.cpp
+4
-0
No files found.
libcaf_core/caf/detail/pull5_gatherer.hpp
View file @
1d9b8d02
...
@@ -29,7 +29,7 @@ class pull5_gatherer : public random_gatherer {
...
@@ -29,7 +29,7 @@ class pull5_gatherer : public random_gatherer {
public:
public:
using
super
=
random_gatherer
;
using
super
=
random_gatherer
;
pull5_gatherer
(
local_actor
*
selfptr
);
pull5_gatherer
(
local_actor
*
selfptr
,
stream_scatterer
&
);
void
assign_credit
(
long
available
)
override
;
void
assign_credit
(
long
available
)
override
;
...
...
libcaf_core/caf/random_gatherer.hpp
View file @
1d9b8d02
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#ifndef CAF_RANDOM_GATHERER_HPP
#ifndef CAF_RANDOM_GATHERER_HPP
#define CAF_RANDOM_GATHERER_HPP
#define CAF_RANDOM_GATHERER_HPP
#include "caf/fwd.hpp"
#include "caf/stream_gatherer_impl.hpp"
#include "caf/stream_gatherer_impl.hpp"
namespace
caf
{
namespace
caf
{
...
@@ -28,7 +29,7 @@ class random_gatherer : public stream_gatherer_impl {
...
@@ -28,7 +29,7 @@ class random_gatherer : public stream_gatherer_impl {
public:
public:
using
super
=
stream_gatherer_impl
;
using
super
=
stream_gatherer_impl
;
random_gatherer
(
local_actor
*
selfptr
);
random_gatherer
(
local_actor
*
selfptr
,
stream_scatterer
&
);
~
random_gatherer
()
override
;
~
random_gatherer
()
override
;
...
...
libcaf_core/caf/stream_sink_impl.hpp
View file @
1d9b8d02
...
@@ -43,7 +43,8 @@ public:
...
@@ -43,7 +43,8 @@ public:
stream_sink_impl
(
local_actor
*
self
,
Fun
fun
,
Finalize
fin
)
stream_sink_impl
(
local_actor
*
self
,
Fun
fun
,
Finalize
fin
)
:
fun_
(
std
::
move
(
fun
)),
:
fun_
(
std
::
move
(
fun
)),
fin_
(
std
::
move
(
fin
)),
fin_
(
std
::
move
(
fin
)),
in_
(
self
)
{
out_
(
self
),
in_
(
self
,
out_
)
{
// nop
// nop
}
}
...
@@ -85,8 +86,8 @@ private:
...
@@ -85,8 +86,8 @@ private:
state_type
state_
;
state_type
state_
;
Fun
fun_
;
Fun
fun_
;
Finalize
fin_
;
Finalize
fin_
;
Gatherer
in_
;
Scatterer
out_
;
Scatterer
out_
;
Gatherer
in_
;
};
};
}
// namespace caf
}
// namespace caf
...
...
libcaf_core/caf/stream_stage_impl.hpp
View file @
1d9b8d02
...
@@ -44,8 +44,8 @@ public:
...
@@ -44,8 +44,8 @@ public:
Fun
fun
,
Cleanup
cleanup
)
Fun
fun
,
Cleanup
cleanup
)
:
fun_
(
std
::
move
(
fun
)),
:
fun_
(
std
::
move
(
fun
)),
cleanup_
(
std
::
move
(
cleanup
)),
cleanup_
(
std
::
move
(
cleanup
)),
in
_
(
self
),
out
_
(
self
),
out_
(
self
)
{
in_
(
self
,
out_
)
{
// nop
// nop
}
}
...
@@ -113,8 +113,8 @@ private:
...
@@ -113,8 +113,8 @@ private:
state_type
state_
;
state_type
state_
;
Fun
fun_
;
Fun
fun_
;
Cleanup
cleanup_
;
Cleanup
cleanup_
;
UpstreamPolicy
in_
;
DownstreamPolicy
out_
;
DownstreamPolicy
out_
;
UpstreamPolicy
in_
;
};
};
}
// namespace caf
}
// namespace caf
...
...
libcaf_core/caf/terminal_stream_scatterer.hpp
View file @
1d9b8d02
...
@@ -27,7 +27,7 @@ namespace caf {
...
@@ -27,7 +27,7 @@ namespace caf {
/// stream scatterer generates credit without downstream actors.
/// stream scatterer generates credit without downstream actors.
class
terminal_stream_scatterer
:
public
stream_scatterer
{
class
terminal_stream_scatterer
:
public
stream_scatterer
{
public:
public:
terminal_stream_scatterer
(
)
=
default
;
terminal_stream_scatterer
(
local_actor
*
=
nullptr
)
;
~
terminal_stream_scatterer
()
override
;
~
terminal_stream_scatterer
()
override
;
...
...
libcaf_core/src/pull5_gatherer.cpp
View file @
1d9b8d02
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
namespace
caf
{
namespace
caf
{
namespace
detail
{
namespace
detail
{
pull5_gatherer
::
pull5_gatherer
(
local_actor
*
selfptr
)
:
super
(
selfptr
)
{
pull5_gatherer
::
pull5_gatherer
(
local_actor
*
selfptr
,
stream_scatterer
&
out
)
:
super
(
selfptr
,
out
)
{
// nop
// nop
}
}
...
...
libcaf_core/src/random_gatherer.cpp
View file @
1d9b8d02
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
namespace
caf
{
namespace
caf
{
random_gatherer
::
random_gatherer
(
local_actor
*
selfptr
)
:
super
(
selfptr
)
{
random_gatherer
::
random_gatherer
(
local_actor
*
selfptr
,
stream_scatterer
&
)
:
super
(
selfptr
)
{
// nop
// nop
}
}
...
...
libcaf_core/src/terminal_stream_scatterer.cpp
View file @
1d9b8d02
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
namespace
caf
{
namespace
caf
{
terminal_stream_scatterer
::
terminal_stream_scatterer
(
local_actor
*
)
{
// nop
}
terminal_stream_scatterer
::~
terminal_stream_scatterer
()
{
terminal_stream_scatterer
::~
terminal_stream_scatterer
()
{
// nop
// nop
}
}
...
...
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