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
532a5087
Commit
532a5087
authored
Feb 13, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing member functions and specializations
parent
54bcceef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
libcaf_core/caf/typed_actor_view.hpp
libcaf_core/caf/typed_actor_view.hpp
+36
-0
No files found.
libcaf_core/caf/typed_actor_view.hpp
View file @
532a5087
...
...
@@ -18,6 +18,7 @@
#pragma once
#include "caf/actor_traits.hpp"
#include "caf/mixin/requester.hpp"
#include "caf/mixin/sender.hpp"
#include "caf/scheduled_actor.hpp"
...
...
@@ -101,6 +102,14 @@ public:
self_
->
demonitor
(
x
);
}
message_id
new_request_id
(
message_priority
mp
)
{
return
self_
->
new_request_id
(
mp
);
}
void
request_response_timeout
(
const
duration
&
d
,
message_id
mid
)
{
return
self_
->
request_response_timeout
(
d
,
mid
);
}
response_promise
make_response_promise
()
{
return
self_
->
make_response_promise
();
}
...
...
@@ -114,6 +123,20 @@ public:
return
self_
->
response
(
std
::
forward
<
Ts
>
(
xs
)...);
}
template
<
class
...
Ts
>
void
eq_impl
(
Ts
&&
...
xs
)
{
self_
->
eq_impl
(
std
::
forward
<
Ts
>
(
xs
)...);
}
void
add_awaited_response_handler
(
message_id
response_id
,
behavior
bhvr
)
{
return
self_
->
add_awaited_response_handler
(
response_id
,
std
::
move
(
bhvr
));
}
void
add_multiplexed_response_handler
(
message_id
response_id
,
behavior
bhvr
)
{
return
self_
->
add_multiplexed_response_handler
(
response_id
,
std
::
move
(
bhvr
));
}
/// Returns a pointer to the sender of the current message.
/// @pre `current_mailbox_element() != nullptr`
strong_actor_ptr
&
current_sender
()
{
...
...
@@ -144,4 +167,17 @@ private:
scheduled_actor
*
self_
;
};
template
<
class
...
Sigs
>
struct
actor_traits
<
typed_actor_view
<
Sigs
...
>>
{
static
constexpr
bool
is_dynamically_typed
=
false
;
static
constexpr
bool
is_statically_typed
=
true
;
static
constexpr
bool
is_blocking
=
false
;
static
constexpr
bool
is_non_blocking
=
true
;
static
constexpr
bool
is_incomplete
=
false
;
};
}
// namespace caf
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