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
e768dd2a
Commit
e768dd2a
authored
May 21, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed chaining in case an actor sends to itself
parent
a043ea85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
cppa/send.hpp
cppa/send.hpp
+4
-3
No files found.
cppa/send.hpp
View file @
e768dd2a
...
@@ -65,11 +65,12 @@ struct destination_header {
...
@@ -65,11 +65,12 @@ struct destination_header {
*/
*/
inline
void
send_tuple
(
destination_header
hdr
,
any_tuple
what
)
{
inline
void
send_tuple
(
destination_header
hdr
,
any_tuple
what
)
{
if
(
hdr
.
receiver
==
nullptr
)
return
;
if
(
hdr
.
receiver
==
nullptr
)
return
;
message_header
fhdr
{
self
,
std
::
move
(
hdr
.
receiver
),
hdr
.
priority
};
auto
s
=
self
.
get
();
if
(
self
->
chaining_enabled
())
{
message_header
fhdr
{
s
,
std
::
move
(
hdr
.
receiver
),
hdr
.
priority
};
if
(
fhdr
.
receiver
!=
s
&&
s
->
chaining_enabled
())
{
if
(
fhdr
.
receiver
->
chained_enqueue
(
fhdr
,
std
::
move
(
what
)))
{
if
(
fhdr
.
receiver
->
chained_enqueue
(
fhdr
,
std
::
move
(
what
)))
{
// only actors implement chained_enqueue to return true
// only actors implement chained_enqueue to return true
s
elf
->
chained_actor
(
fhdr
.
receiver
.
downcast
<
actor
>
());
s
->
chained_actor
(
fhdr
.
receiver
.
downcast
<
actor
>
());
}
}
}
}
else
fhdr
.
deliver
(
std
::
move
(
what
));
else
fhdr
.
deliver
(
std
::
move
(
what
));
...
...
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