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
c9cc5d42
Commit
c9cc5d42
authored
Nov 09, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing demonitor overload
parent
c7182118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
libcaf_core/caf/local_actor.hpp
libcaf_core/caf/local_actor.hpp
+3
-0
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+7
-3
No files found.
libcaf_core/caf/local_actor.hpp
View file @
c9cc5d42
...
...
@@ -335,6 +335,9 @@ public:
/// Removes a monitor from `whom`.
void
demonitor
(
const
actor_addr
&
whom
);
/// Removes a monitor from `whom`.
void
demonitor
(
const
strong_actor_ptr
&
whom
);
/// Removes a monitor from `node`.
void
demonitor
(
const
node_id
&
node
);
...
...
libcaf_core/src/local_actor.cpp
View file @
c9cc5d42
...
...
@@ -119,11 +119,15 @@ void local_actor::monitor(const node_id& node) {
void
local_actor
::
demonitor
(
const
actor_addr
&
whom
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
whom
));
auto
ptr
=
actor_cast
<
strong_actor_ptr
>
(
whom
);
if
(
ptr
)
{
demonitor
(
actor_cast
<
strong_actor_ptr
>
(
whom
));
}
void
local_actor
::
demonitor
(
const
strong_actor_ptr
&
whom
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
whom
));
if
(
whom
)
{
default_attachable
::
observe_token
tk
{
address
(),
default_attachable
::
monitor
};
ptr
->
get
()
->
detach
(
tk
);
whom
->
get
()
->
detach
(
tk
);
}
}
...
...
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