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
73718b1c
Commit
73718b1c
authored
Jun 16, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in `split_join` policy
parent
5b1834de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
libcaf_core/caf/detail/split_join.hpp
libcaf_core/caf/detail/split_join.hpp
+14
-14
No files found.
libcaf_core/caf/detail/split_join.hpp
View file @
73718b1c
...
...
@@ -48,21 +48,22 @@ public:
behavior
make_behavior
()
override
{
return
{
others
>>
[
=
]
{
rp_
=
make_response_promise
();
split_
(
workset_
,
current_message
());
// first message is the forwarded request
for
(
auto
&
x
:
workset_
)
{
sync_send
(
x
.
first
,
std
::
move
(
x
.
second
)).
then
(
others
>>
[
=
]
{
auto
rp
=
this
->
make_response_promise
();
split_
(
workset_
,
this
->
current_message
());
for
(
auto
&
x
:
workset_
)
this
->
send
(
x
.
first
,
std
::
move
(
x
.
second
));
this
->
become
(
// collect results
others
>>
[
=
]
{
join_
(
value_
,
this
->
current_message
());
if
(
--
awaited_results_
==
0
)
{
rp_
.
deliver
(
make_message
(
value_
));
rp
.
deliver
(
make_message
(
value_
));
quit
();
}
}
);
}
// no longer needed
workset_
.
clear
();
}
...
...
@@ -75,7 +76,6 @@ private:
Join
join_
;
Split
split_
;
T
value_
;
response_promise
rp_
;
};
struct
nop_split
{
...
...
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