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
57593e7a
Commit
57593e7a
authored
Mar 03, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unsafe add (input|output) path variants
parent
903add4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
libcaf_core/caf/scheduled_actor.hpp
libcaf_core/caf/scheduled_actor.hpp
+15
-0
No files found.
libcaf_core/caf/scheduled_actor.hpp
View file @
57593e7a
...
@@ -431,6 +431,13 @@ public:
...
@@ -431,6 +431,13 @@ public:
return
{
slot
,
std
::
move
(
mgr
)};
return
{
slot
,
std
::
move
(
mgr
)};
}
}
/// Creates an output path for the given stage without any type checking.
template
<
class
Out
,
class
...
Ts
>
output_stream
<
Out
,
Ts
...
>
add_unsafe_output_path
(
stream_manager_ptr
mgr
)
{
auto
slot
=
assign_next_pending_slot
(
mgr
);
return
{
0
,
slot
,
std
::
move
(
mgr
)};
}
/// Creates an input path for given stage.
/// Creates an input path for given stage.
template
<
class
In
,
class
Result
,
class
Out
,
class
Scatterer
,
class
...
Ts
>
template
<
class
In
,
class
Result
,
class
Out
,
class
Scatterer
,
class
...
Ts
>
make_sink_result
<
In
,
Result
>
make_sink_result
<
In
,
Result
>
...
@@ -440,6 +447,14 @@ public:
...
@@ -440,6 +447,14 @@ public:
return
{
slot
,
std
::
move
(
mgr
)};
return
{
slot
,
std
::
move
(
mgr
)};
}
}
/// Creates an input path for given stage.
template
<
class
Result
,
class
In
>
stream_result
<
Result
>
add_unsafe_input_path
(
const
stream
<
In
>&
,
stream_manager_ptr
mgr
)
{
auto
slot
=
assign_next_slot
(
mgr
);
return
{
slot
,
std
::
move
(
mgr
)};
}
/// Creates a new stream source and starts streaming to `dest`.
/// Creates a new stream source and starts streaming to `dest`.
/// @param dest Actor handle to the stream destination.
/// @param dest Actor handle to the stream destination.
/// @param xs User-defined handshake payload.
/// @param xs User-defined handshake payload.
...
...
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