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
923e91c3
Commit
923e91c3
authored
Sep 11, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log scoped and blocking actors too
parent
5a61e5da
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
73 deletions
+77
-73
libcaf_core/caf/detail/logging.hpp
libcaf_core/caf/detail/logging.hpp
+66
-70
libcaf_core/caf/local_actor.hpp
libcaf_core/caf/local_actor.hpp
+1
-0
libcaf_core/caf/policy/event_based_resume.hpp
libcaf_core/caf/policy/event_based_resume.hpp
+1
-1
libcaf_core/caf/policy/invoke_policy.hpp
libcaf_core/caf/policy/invoke_policy.hpp
+1
-0
libcaf_core/caf/policy/no_resume.hpp
libcaf_core/caf/policy/no_resume.hpp
+2
-0
libcaf_core/src/scoped_actor.cpp
libcaf_core/src/scoped_actor.cpp
+6
-2
No files found.
libcaf_core/caf/detail/logging.hpp
View file @
923e91c3
This diff is collapsed.
Click to expand it.
libcaf_core/caf/local_actor.hpp
View file @
923e91c3
...
...
@@ -47,6 +47,7 @@
#include "caf/mixin/memory_cached.hpp"
#include "caf/detail/logging.hpp"
#include "caf/detail/behavior_stack.hpp"
#include "caf/detail/typed_actor_util.hpp"
#include "caf/detail/single_reader_queue.hpp"
...
...
libcaf_core/caf/policy/event_based_resume.hpp
View file @
923e91c3
...
...
@@ -61,8 +61,8 @@ class event_based_resume {
size_t
max_throughput
)
override
{
CAF_REQUIRE
(
max_throughput
>
0
);
auto
d
=
static_cast
<
Derived
*>
(
this
);
d
->
host
(
new_host
);
CAF_LOG_TRACE
(
"id = "
<<
d
->
id
());
d
->
host
(
new_host
);
auto
done_cb
=
[
&
]()
->
bool
{
CAF_LOG_TRACE
(
""
);
d
->
bhvr_stack
().
clear
();
...
...
libcaf_core/caf/policy/invoke_policy.hpp
View file @
923e91c3
...
...
@@ -89,6 +89,7 @@ class invoke_policy {
if
(
!
node_ptr
)
{
return
false
;
}
CAF_LOG_TRACE
(
""
);
switch
(
handle_message
(
self
,
node_ptr
.
get
(),
fun
,
awaited_response
))
{
case
hm_msg_handled
:
node_ptr
.
reset
();
...
...
libcaf_core/caf/policy/no_resume.hpp
View file @
923e91c3
...
...
@@ -6,6 +6,7 @@
#include "caf/exception.hpp"
#include "caf/exit_reason.hpp"
#include "caf/detail/logging.hpp"
#include "caf/policy/resume_policy.hpp"
namespace
caf
{
...
...
@@ -29,6 +30,7 @@ class no_resume {
}
resumable
::
resume_result
resume
(
execution_unit
*
,
size_t
)
{
CAF_LOG_TRACE
(
""
);
uint32_t
rsn
=
exit_reason
::
normal
;
try
{
this
->
act
();
...
...
libcaf_core/src/scoped_actor.cpp
View file @
923e91c3
...
...
@@ -34,7 +34,9 @@ namespace caf {
namespace
{
struct
impl
:
blocking_actor
{
void
act
()
override
{}
void
act
()
override
{
CAF_LOG_ERROR
(
"act() of scoped_actor impl called"
);
}
};
blocking_actor
*
alloc
()
{
...
...
@@ -48,10 +50,11 @@ blocking_actor* alloc() {
void
scoped_actor
::
init
(
bool
hide_actor
)
{
m_self
.
reset
(
alloc
());
m_self
->
is_registered
(
!
hide_actor
);
if
(
!
hide_actor
)
{
m_prev
=
CAF_SET_AID
(
m_self
->
id
());
}
CAF_LOG_TRACE
(
CAF_ARG
(
hide_actor
));
m_self
->
is_registered
(
!
hide_actor
);
}
scoped_actor
::
scoped_actor
()
{
...
...
@@ -63,6 +66,7 @@ scoped_actor::scoped_actor(bool hide_actor) {
}
scoped_actor
::~
scoped_actor
()
{
CAF_LOG_TRACE
(
""
);
if
(
m_self
->
is_registered
())
{
CAF_SET_AID
(
m_prev
);
}
...
...
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