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
cf6952f1
Commit
cf6952f1
authored
May 02, 2018
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function to detach scribes in test multiplexer
parent
1d93cf63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
libcaf_io/caf/io/network/test_multiplexer.hpp
libcaf_io/caf/io/network/test_multiplexer.hpp
+4
-0
libcaf_io/src/test_multiplexer.cpp
libcaf_io/src/test_multiplexer.cpp
+5
-0
No files found.
libcaf_io/caf/io/network/test_multiplexer.hpp
View file @
cf6952f1
...
...
@@ -256,6 +256,10 @@ public:
void
virtual_send
(
datagram_handle
src
,
datagram_handle
ep
,
const
buffer_type
&
);
/// Detaches a scribe identified by `hdl` and optianlly makes it send a
/// disconnect message to its broker.
void
detach
(
connection_handle
hdl
,
bool
invoke_detach_message
=
false
);
/// Waits until a `runnable` is available and executes it.
void
exec_runnable
();
...
...
libcaf_io/src/test_multiplexer.cpp
View file @
cf6952f1
...
...
@@ -938,6 +938,11 @@ void test_multiplexer::virtual_send(datagram_handle dst, datagram_handle ep,
read_data
(
dst
);
}
void
test_multiplexer
::
detach
(
connection_handle
hdl
,
bool
invoke_detach_message
)
{
scribe_data_
[
hdl
].
ptr
->
detach
(
this
,
invoke_detach_message
);
}
void
test_multiplexer
::
exec_runnable
()
{
CAF_ASSERT
(
std
::
this_thread
::
get_id
()
==
tid_
);
CAF_LOG_TRACE
(
""
);
...
...
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