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
aa72be06
Commit
aa72be06
authored
Oct 16, 2014
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable prioritizing of forwarded messages.
parent
760996f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
libcaf_core/caf/event_based_actor.hpp
libcaf_core/caf/event_based_actor.hpp
+2
-1
libcaf_core/src/event_based_actor.cpp
libcaf_core/src/event_based_actor.cpp
+3
-2
No files found.
libcaf_core/caf/event_based_actor.hpp
View file @
aa72be06
...
...
@@ -52,7 +52,8 @@ class event_based_actor
/**
* Forwards the last received message to `whom`.
*/
void
forward_to
(
const
actor
&
whom
);
void
forward_to
(
const
actor
&
whom
,
message_priority
=
message_priority
::
normal
);
event_based_actor
()
=
default
;
...
...
libcaf_core/src/event_based_actor.cpp
View file @
aa72be06
...
...
@@ -28,8 +28,9 @@ event_based_actor::~event_based_actor() {
// nop
}
void
event_based_actor
::
forward_to
(
const
actor
&
whom
)
{
forward_message
(
whom
,
message_priority
::
normal
);
void
event_based_actor
::
forward_to
(
const
actor
&
whom
,
message_priority
prio
)
{
forward_message
(
whom
,
prio
);
}
behavior
event_based_actor
::
functor_based
::
make_behavior
()
{
...
...
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