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
49e426b8
Commit
49e426b8
authored
Aug 18, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid memory leaks during shutdown in basp_broker
parent
e4ec7c59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
libcaf_io/caf/io/basp_broker.hpp
libcaf_io/caf/io/basp_broker.hpp
+2
-0
libcaf_io/src/basp_broker.cpp
libcaf_io/src/basp_broker.cpp
+7
-0
No files found.
libcaf_io/caf/io/basp_broker.hpp
View file @
49e426b8
...
...
@@ -44,6 +44,8 @@ namespace io {
struct
basp_broker_state
:
actor_namespace
::
backend
,
basp
::
instance
::
callee
{
basp_broker_state
(
broker
*
self
);
~
basp_broker_state
();
// inherited from actor_namespace::backend
actor_proxy_ptr
make_proxy
(
const
node_id
&
nid
,
actor_id
aid
)
override
;
...
...
libcaf_io/src/basp_broker.cpp
View file @
49e426b8
...
...
@@ -21,6 +21,7 @@
#include <limits>
#include "caf/send.hpp"
#include "caf/exception.hpp"
#include "caf/make_counted.hpp"
#include "caf/event_based_actor.hpp"
...
...
@@ -55,6 +56,12 @@ basp_broker_state::basp_broker_state(broker* selfptr)
CAF_ASSERT
(
this_node
()
!=
invalid_node_id
);
}
basp_broker_state
::~
basp_broker_state
()
{
// make sure all spawn servers are down
for
(
auto
&
kvp
:
spawn_servers
)
anon_send_exit
(
kvp
.
second
,
exit_reason
::
kill
);
}
actor_proxy_ptr
basp_broker_state
::
make_proxy
(
const
node_id
&
nid
,
actor_id
aid
)
{
CAF_LOG_TRACE
(
CAF_TSARG
(
nid
)
<<
", "
<<
CAF_ARG
(
aid
));
...
...
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