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
de6aae61
Commit
de6aae61
authored
May 24, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly fix responses to high prio async messages
parent
25ff0831
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libcaf_core/caf/message_id.hpp
libcaf_core/caf/message_id.hpp
+1
-1
libcaf_core/src/response_promise.cpp
libcaf_core/src/response_promise.cpp
+1
-1
No files found.
libcaf_core/caf/message_id.hpp
View file @
de6aae61
...
@@ -66,7 +66,7 @@ public:
...
@@ -66,7 +66,7 @@ public:
}
}
inline
bool
is_async
()
const
{
inline
bool
is_async
()
const
{
return
value_
==
0
;
return
value_
==
0
||
value_
==
high_prioity_flag_mask
;
}
}
inline
bool
is_response
()
const
{
inline
bool
is_response
()
const
{
...
...
libcaf_core/src/response_promise.cpp
View file @
de6aae61
...
@@ -35,7 +35,7 @@ response_promise::response_promise(local_actor* self, mailbox_element& src)
...
@@ -35,7 +35,7 @@ response_promise::response_promise(local_actor* self, mailbox_element& src)
id_
(
src
.
mid
)
{
id_
(
src
.
mid
)
{
// form an invalid request promise when initialized from a
// form an invalid request promise when initialized from a
// response ID, since CAF always drops messages in this case
// response ID, since CAF always drops messages in this case
if
(
src
.
mid
.
is_request
())
{
if
(
!
src
.
mid
.
is_response
())
{
source_
=
std
::
move
(
src
.
sender
);
source_
=
std
::
move
(
src
.
sender
);
stages_
=
std
::
move
(
src
.
stages
);
stages_
=
std
::
move
(
src
.
stages
);
}
}
...
...
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