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
2c46b07f
Commit
2c46b07f
authored
Jan 10, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include review feedback
parent
d05fb5d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
libcaf_net/caf/net/multiplexer.hpp
libcaf_net/caf/net/multiplexer.hpp
+1
-2
libcaf_net/src/multiplexer.cpp
libcaf_net/src/multiplexer.cpp
+2
-3
libcaf_net/src/net/middleman.cpp
libcaf_net/src/net/middleman.cpp
+1
-4
No files found.
libcaf_net/caf/net/multiplexer.hpp
View file @
2c46b07f
...
...
@@ -93,9 +93,8 @@ public:
void
run
();
/// Signals the multiplexer to initiate shutdown.
/// @returns true if manual triggering is needed, false if not.
/// @thread-safe
bool
shutdown
();
void
shutdown
();
protected:
// -- utility functions ------------------------------------------------------
...
...
libcaf_net/src/multiplexer.cpp
View file @
2c46b07f
...
...
@@ -230,7 +230,7 @@ void multiplexer::run() {
poll_once
(
true
);
}
bool
multiplexer
::
shutdown
()
{
void
multiplexer
::
shutdown
()
{
if
(
std
::
this_thread
::
get_id
()
==
tid_
)
{
will_shutdown_
=
true
;
if
(
managers_
.
size
()
==
1
)
{
...
...
@@ -240,10 +240,9 @@ bool multiplexer::shutdown() {
for
(
size_t
i
=
1
;
i
<
managers_
.
size
();
++
i
)
write_to_pipe
(
4
,
managers_
[
i
]);
}
return
true
;
}
else
{
write_to_pipe
(
5
,
nullptr
);
r
eturn
false
;
r
un
()
;
}
}
...
...
libcaf_net/src/net/middleman.cpp
View file @
2c46b07f
...
...
@@ -55,11 +55,8 @@ void middleman::start() {
void
middleman
::
stop
()
{
for
(
const
auto
&
backend
:
backends_
)
backend
->
stop
();
if
(
mpx_
->
shutdown
())
{
mpx_
->
run
();
}
else
if
(
mpx_thread_
.
joinable
())
{
if
(
mpx_thread_
.
joinable
())
mpx_thread_
.
join
();
}
}
void
middleman
::
init
(
actor_system_config
&
cfg
)
{
...
...
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