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
55716d22
Commit
55716d22
authored
Jan 09, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Asan issue
parent
dccf46db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libcaf_net/src/net/middleman.cpp
libcaf_net/src/net/middleman.cpp
+5
-3
No files found.
libcaf_net/src/net/middleman.cpp
View file @
55716d22
...
@@ -56,14 +56,16 @@ void middleman::stop() {
...
@@ -56,14 +56,16 @@ void middleman::stop() {
for
(
const
auto
&
backend
:
backends_
)
for
(
const
auto
&
backend
:
backends_
)
backend
->
stop
();
backend
->
stop
();
mpx_
->
shutdown
();
mpx_
->
shutdown
();
if
(
mpx_thread_
.
joinable
())
// TODO: Implement shutdown for multiplexer running in own thread!
mpx_thread_
.
join
();
// if (mpx_thread_.joinable())
// mpx_thread_.join();
mpx_
->
run
();
}
}
void
middleman
::
init
(
actor_system_config
&
cfg
)
{
void
middleman
::
init
(
actor_system_config
&
cfg
)
{
if
(
auto
err
=
mpx_
->
init
())
{
if
(
auto
err
=
mpx_
->
init
())
{
CAF_LOG_ERROR
(
"mgr->init() failed: "
<<
system
().
render
(
err
));
CAF_LOG_ERROR
(
"mgr->init() failed: "
<<
system
().
render
(
err
));
CAF_RAISE_ERROR
(
"mpx->init failed"
);
CAF_RAISE_ERROR
(
"mpx->init
()
failed"
);
}
}
if
(
auto
node_uri
=
get_if
<
uri
>
(
&
cfg
,
"middleman.this-node"
))
{
if
(
auto
node_uri
=
get_if
<
uri
>
(
&
cfg
,
"middleman.this-node"
))
{
auto
this_node
=
make_node_id
(
std
::
move
(
*
node_uri
));
auto
this_node
=
make_node_id
(
std
::
move
(
*
node_uri
));
...
...
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