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
415bed8f
Commit
415bed8f
authored
Apr 27, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style nitpicks
parent
2c5604c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+9
-14
No files found.
libcaf_core/src/local_actor.cpp
View file @
415bed8f
...
...
@@ -43,23 +43,20 @@ result<message> reflect(local_actor*, const type_erased_tuple* x) {
return
message
::
from
(
x
);
}
result
<
message
>
reflect_and_quit
(
local_actor
*
self
,
const
type_erased_tuple
*
x
)
{
self
->
quit
();
return
reflect
(
self
,
x
);
result
<
message
>
reflect_and_quit
(
local_actor
*
ptr
,
const
type_erased_tuple
*
x
)
{
ptr
->
quit
();
return
reflect
(
ptr
,
x
);
}
result
<
message
>
print_and_drop
(
local_actor
*
self
,
const
type_erased_tuple
*
x
)
{
result
<
message
>
print_and_drop
(
local_actor
*
ptr
,
const
type_erased_tuple
*
x
)
{
CAF_LOG_WARNING
(
"unexpected message"
<<
CAF_ARG
(
*
x
));
aout
(
self
)
<<
"*** unexpected message [id: "
<<
self
->
id
()
<<
", name: "
<<
self
->
name
()
<<
"]: "
<<
x
->
stringify
()
aout
(
ptr
)
<<
"*** unexpected message [id: "
<<
ptr
->
id
()
<<
", name: "
<<
ptr
->
name
()
<<
"]: "
<<
x
->
stringify
()
<<
std
::
endl
;
return
sec
::
unexpected_message
;
}
result
<
message
>
drop
(
local_actor
*
,
const
type_erased_tuple
*
)
{
result
<
message
>
drop
(
local_actor
*
,
const
type_erased_tuple
*
)
{
return
sec
::
unexpected_message
;
}
...
...
@@ -116,14 +113,12 @@ void local_actor::intrusive_ptr_release_impl() {
}
void
local_actor
::
monitor
(
abstract_actor
*
ptr
)
{
if
(
!
ptr
)
return
;
CAF_ASSERT
(
ptr
!=
nullptr
);
ptr
->
attach
(
default_attachable
::
make_monitor
(
ptr
->
address
(),
address
()));
}
void
local_actor
::
demonitor
(
const
actor_addr
&
whom
)
{
if
(
!
whom
)
return
;
CAF_LOG_TRACE
(
CAF_ARG
(
whom
));
auto
ptr
=
actor_cast
<
strong_actor_ptr
>
(
whom
);
if
(
!
ptr
)
return
;
...
...
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