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
37652efa
Commit
37652efa
authored
May 17, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grant users access filtering downstream lanes
parent
aac42910
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
libcaf_core/caf/filtering_downstream.hpp
libcaf_core/caf/filtering_downstream.hpp
+10
-0
No files found.
libcaf_core/caf/filtering_downstream.hpp
View file @
37652efa
...
...
@@ -28,6 +28,8 @@
#include "caf/downstream.hpp"
#include "caf/meta/type_name.hpp"
namespace
caf
{
/// A filtering downstream allows stages to fork into multiple lanes, where
...
...
@@ -45,6 +47,10 @@ public:
struct
lane
{
typename
super
::
queue_type
queue
;
typename
super
::
path_ptr_list
paths
;
template
<
class
Inspector
>
friend
typename
Inspector
::
result_type
inspect
(
Inspector
&
f
,
lane
&
x
)
{
return
f
(
meta
::
type_name
(
"lane"
),
x
.
queue
,
x
.
paths
);
}
};
/// Identifies a lane inside the downstream. Filters are kept in sorted order
...
...
@@ -110,6 +116,10 @@ public:
lanes_
[
std
::
move
(
f
)].
paths
.
push_back
(
super
::
find
(
x
));
}
const
lanes_map
&
lanes
()
const
{
return
lanes_
;
}
private:
void
erase_from_lanes
(
const
strong_actor_ptr
&
x
)
{
for
(
auto
i
=
lanes_
.
begin
();
i
!=
lanes_
.
end
();
++
i
)
...
...
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