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
f3820b20
Commit
f3820b20
authored
Jan 14, 2020
by
Dominik Charousset
Committed by
GitHub
Jan 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #55
Followup on #51
parents
226f1170
3c5fcd91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libcaf_net/src/multiplexer.cpp
libcaf_net/src/multiplexer.cpp
+3
-3
No files found.
libcaf_net/src/multiplexer.cpp
View file @
f3820b20
...
@@ -241,7 +241,7 @@ void multiplexer::shutdown() {
...
@@ -241,7 +241,7 @@ void multiplexer::shutdown() {
}
}
close_pipe
();
close_pipe
();
}
else
{
}
else
{
write_to_pipe
(
5
,
nullptr
);
write_to_pipe
(
4
,
nullptr
);
}
}
}
}
...
@@ -292,10 +292,10 @@ void multiplexer::del(ptrdiff_t index) {
...
@@ -292,10 +292,10 @@ void multiplexer::del(ptrdiff_t index) {
}
}
void
multiplexer
::
write_to_pipe
(
uint8_t
opcode
,
const
socket_manager_ptr
&
mgr
)
{
void
multiplexer
::
write_to_pipe
(
uint8_t
opcode
,
const
socket_manager_ptr
&
mgr
)
{
CAF_ASSERT
(
opcode
==
0
||
opcode
==
1
||
opcode
==
4
||
opcode
==
5
);
CAF_ASSERT
(
opcode
==
0
||
opcode
==
1
||
opcode
==
4
);
CAF_ASSERT
(
mgr
!=
nullptr
||
opcode
==
4
);
CAF_ASSERT
(
mgr
!=
nullptr
||
opcode
==
4
);
pollset_updater
::
msg_buf
buf
;
pollset_updater
::
msg_buf
buf
;
if
(
opcode
!=
5
)
if
(
opcode
!=
4
)
mgr
->
ref
();
mgr
->
ref
();
buf
[
0
]
=
static_cast
<
byte
>
(
opcode
);
buf
[
0
]
=
static_cast
<
byte
>
(
opcode
);
auto
value
=
reinterpret_cast
<
intptr_t
>
(
mgr
.
get
());
auto
value
=
reinterpret_cast
<
intptr_t
>
(
mgr
.
get
());
...
...
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