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
deeabd7e
Commit
deeabd7e
authored
Mar 17, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve logging output
parent
e26c0f58
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
5 deletions
+13
-5
libcaf_core/caf/scheduled_actor.hpp
libcaf_core/caf/scheduled_actor.hpp
+3
-1
libcaf_core/caf/typed_event_based_actor.hpp
libcaf_core/caf/typed_event_based_actor.hpp
+2
-1
libcaf_core/src/blocking_actor.cpp
libcaf_core/src/blocking_actor.cpp
+1
-0
libcaf_core/src/event_based_actor.cpp
libcaf_core/src/event_based_actor.cpp
+3
-2
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+1
-1
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+1
-0
libcaf_core/src/scoped_actor.cpp
libcaf_core/src/scoped_actor.cpp
+1
-0
libcaf_io/src/abstract_broker.cpp
libcaf_io/src/abstract_broker.cpp
+1
-0
No files found.
libcaf_core/caf/scheduled_actor.hpp
View file @
deeabd7e
...
@@ -738,7 +738,9 @@ public:
...
@@ -738,7 +738,9 @@ public:
upstream_msg
::
ack_open
&
x
);
upstream_msg
::
ack_open
&
x
);
template
<
class
T
>
template
<
class
T
>
void
handle_upstream_msg
(
stream_slots
slots
,
actor_addr
&
,
T
&
x
)
{
void
handle_upstream_msg
(
stream_slots
slots
,
actor_addr
&
sender
,
T
&
x
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
slots
)
<<
CAF_ARG
(
sender
)
<<
CAF_ARG
(
x
));
CAF_IGNORE_UNUSED
(
sender
);
auto
i
=
stream_managers_
.
find
(
slots
.
receiver
);
auto
i
=
stream_managers_
.
find
(
slots
.
receiver
);
if
(
i
==
stream_managers_
.
end
())
{
if
(
i
==
stream_managers_
.
end
())
{
auto
j
=
pending_stream_managers_
.
find
(
slots
.
receiver
);
auto
j
=
pending_stream_managers_
.
find
(
slots
.
receiver
);
...
...
libcaf_core/caf/typed_event_based_actor.hpp
View file @
deeabd7e
...
@@ -69,6 +69,8 @@ public:
...
@@ -69,6 +69,8 @@ public:
}
}
void
initialize
()
override
{
void
initialize
()
override
{
CAF_LOG_TRACE
(
""
);
super
::
initialize
();
this
->
setf
(
abstract_actor
::
is_initialized_flag
);
this
->
setf
(
abstract_actor
::
is_initialized_flag
);
auto
bhvr
=
make_behavior
();
auto
bhvr
=
make_behavior
();
CAF_LOG_DEBUG_IF
(
!
bhvr
,
"make_behavior() did not return a behavior:"
CAF_LOG_DEBUG_IF
(
!
bhvr
,
"make_behavior() did not return a behavior:"
...
@@ -78,7 +80,6 @@ public:
...
@@ -78,7 +80,6 @@ public:
CAF_LOG_DEBUG
(
"make_behavior() did return a valid behavior"
);
CAF_LOG_DEBUG
(
"make_behavior() did return a valid behavior"
);
this
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
true
);
this
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
true
);
}
}
super
::
initialize
();
}
}
protected:
protected:
...
...
libcaf_core/src/blocking_actor.cpp
View file @
deeabd7e
...
@@ -84,6 +84,7 @@ const char* blocking_actor::name() const {
...
@@ -84,6 +84,7 @@ const char* blocking_actor::name() const {
}
}
void
blocking_actor
::
launch
(
execution_unit
*
,
bool
,
bool
hide
)
{
void
blocking_actor
::
launch
(
execution_unit
*
,
bool
,
bool
hide
)
{
CAF_PUSH_AID_FROM_PTR
(
this
);
CAF_LOG_TRACE
(
CAF_ARG
(
hide
));
CAF_LOG_TRACE
(
CAF_ARG
(
hide
));
CAF_ASSERT
(
getf
(
is_blocking_flag
));
CAF_ASSERT
(
getf
(
is_blocking_flag
));
if
(
!
hide
)
if
(
!
hide
)
...
...
libcaf_core/src/event_based_actor.cpp
View file @
deeabd7e
...
@@ -32,7 +32,9 @@ event_based_actor::~event_based_actor() {
...
@@ -32,7 +32,9 @@ event_based_actor::~event_based_actor() {
}
}
void
event_based_actor
::
initialize
()
{
void
event_based_actor
::
initialize
()
{
CAF_LOG_TRACE
(
"subtype ="
<<
detail
::
pretty_type_name
(
typeid
(
*
this
)).
c_str
());
CAF_LOG_TRACE
(
CAF_ARG2
(
"subtype"
,
detail
::
pretty_type_name
(
typeid
(
*
this
)).
c_str
()));
extended_base
::
initialize
();
setf
(
is_initialized_flag
);
setf
(
is_initialized_flag
);
auto
bhvr
=
make_behavior
();
auto
bhvr
=
make_behavior
();
CAF_LOG_DEBUG_IF
(
!
bhvr
,
"make_behavior() did not return a behavior:"
CAF_LOG_DEBUG_IF
(
!
bhvr
,
"make_behavior() did not return a behavior:"
...
@@ -42,7 +44,6 @@ void event_based_actor::initialize() {
...
@@ -42,7 +44,6 @@ void event_based_actor::initialize() {
CAF_LOG_DEBUG
(
"make_behavior() did return a valid behavior"
);
CAF_LOG_DEBUG
(
"make_behavior() did return a valid behavior"
);
become
(
std
::
move
(
bhvr
));
become
(
std
::
move
(
bhvr
));
}
}
extended_base
::
initialize
();
}
}
behavior
event_based_actor
::
make_behavior
()
{
behavior
event_based_actor
::
make_behavior
()
{
...
...
libcaf_core/src/local_actor.cpp
View file @
deeabd7e
...
@@ -112,7 +112,7 @@ error local_actor::load_state(deserializer&, const unsigned int) {
...
@@ -112,7 +112,7 @@ error local_actor::load_state(deserializer&, const unsigned int) {
}
}
void
local_actor
::
initialize
()
{
void
local_actor
::
initialize
()
{
// nop
CAF_LOG_TRACE
(
CAF_ARG2
(
"id"
,
id
())
<<
CAF_ARG2
(
"name"
,
name
()));
}
}
bool
local_actor
::
cleanup
(
error
&&
fail_state
,
execution_unit
*
host
)
{
bool
local_actor
::
cleanup
(
error
&&
fail_state
,
execution_unit
*
host
)
{
...
...
libcaf_core/src/scheduled_actor.cpp
View file @
deeabd7e
...
@@ -178,6 +178,7 @@ const char* scheduled_actor::name() const {
...
@@ -178,6 +178,7 @@ const char* scheduled_actor::name() const {
}
}
void
scheduled_actor
::
launch
(
execution_unit
*
eu
,
bool
lazy
,
bool
hide
)
{
void
scheduled_actor
::
launch
(
execution_unit
*
eu
,
bool
lazy
,
bool
hide
)
{
CAF_PUSH_AID_FROM_PTR
(
this
);
CAF_LOG_TRACE
(
CAF_ARG
(
lazy
)
<<
CAF_ARG
(
hide
));
CAF_LOG_TRACE
(
CAF_ARG
(
lazy
)
<<
CAF_ARG
(
hide
));
CAF_ASSERT
(
!
getf
(
is_blocking_flag
));
CAF_ASSERT
(
!
getf
(
is_blocking_flag
));
if
(
!
hide
)
if
(
!
hide
)
...
...
libcaf_core/src/scoped_actor.cpp
View file @
deeabd7e
...
@@ -42,6 +42,7 @@ public:
...
@@ -42,6 +42,7 @@ public:
}
}
void
launch
(
execution_unit
*
,
bool
,
bool
hide
)
override
{
void
launch
(
execution_unit
*
,
bool
,
bool
hide
)
override
{
CAF_PUSH_AID_FROM_PTR
(
this
);
CAF_LOG_TRACE
(
CAF_ARG
(
hide
));
CAF_LOG_TRACE
(
CAF_ARG
(
hide
));
CAF_ASSERT
(
getf
(
is_blocking_flag
));
CAF_ASSERT
(
getf
(
is_blocking_flag
));
if
(
!
hide
)
if
(
!
hide
)
...
...
libcaf_io/src/abstract_broker.cpp
View file @
deeabd7e
...
@@ -46,6 +46,7 @@ void abstract_broker::enqueue(mailbox_element_ptr ptr, execution_unit*) {
...
@@ -46,6 +46,7 @@ void abstract_broker::enqueue(mailbox_element_ptr ptr, execution_unit*) {
}
}
void
abstract_broker
::
launch
(
execution_unit
*
eu
,
bool
lazy
,
bool
hide
)
{
void
abstract_broker
::
launch
(
execution_unit
*
eu
,
bool
lazy
,
bool
hide
)
{
CAF_PUSH_AID_FROM_PTR
(
this
);
CAF_ASSERT
(
eu
!=
nullptr
);
CAF_ASSERT
(
eu
!=
nullptr
);
CAF_ASSERT
(
eu
==
&
backend
());
CAF_ASSERT
(
eu
==
&
backend
());
CAF_LOG_TRACE
(
CAF_ARG
(
lazy
)
<<
CAF_ARG
(
hide
));
CAF_LOG_TRACE
(
CAF_ARG
(
lazy
)
<<
CAF_ARG
(
hide
));
...
...
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