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
272bbfaa
Commit
272bbfaa
authored
Jun 03, 2014
by
Marian Triebe
Committed by
Dominik Charousset
Jun 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when building with logging enabled
parent
9917b4dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cppa/policy/invoke_policy.hpp
cppa/policy/invoke_policy.hpp
+4
-4
cppa/policy/no_scheduling.hpp
cppa/policy/no_scheduling.hpp
+1
-1
No files found.
cppa/policy/invoke_policy.hpp
View file @
272bbfaa
...
@@ -192,7 +192,7 @@ class invoke_policy {
...
@@ -192,7 +192,7 @@ class invoke_policy {
message_id
&
mid
,
message_id
&
mid
,
Fun
&
fun
,
Fun
&
fun
,
MaybeResponseHandle
hdl
=
MaybeResponseHandle
{})
{
MaybeResponseHandle
hdl
=
MaybeResponseHandle
{})
{
# if CPPA_LOG_LEVEL >= CPPA_
POLICY_
DEBUG
# if CPPA_LOG_LEVEL >= CPPA_DEBUG
auto
msg_str
=
to_string
(
msg
);
auto
msg_str
=
to_string
(
msg
);
# endif
# endif
auto
res
=
fun
(
msg
);
// might change mid
auto
res
=
fun
(
msg
);
// might change mid
...
@@ -323,9 +323,9 @@ class invoke_policy {
...
@@ -323,9 +323,9 @@ class invoke_policy {
}
}
case
msg_type
:
:
sync_response
:
{
case
msg_type
:
:
sync_response
:
{
CPPA_LOG_DEBUG
(
"handle as synchronous response: "
CPPA_LOG_DEBUG
(
"handle as synchronous response: "
<<
CPPA_
POLICY_
TARG
(
node
->
msg
,
to_string
)
<<
", "
<<
CPPA_TARG
(
node
->
msg
,
to_string
)
<<
", "
<<
CPPA_
POLICY_
MARG
(
node
->
mid
,
integer_value
)
<<
", "
<<
CPPA_MARG
(
node
->
mid
,
integer_value
)
<<
", "
<<
CPPA_
POLICY_
MARG
(
awaited_response
,
integer_value
));
<<
CPPA_MARG
(
awaited_response
,
integer_value
));
if
(
awaited_response
.
valid
()
&&
node
->
mid
==
awaited_response
)
{
if
(
awaited_response
.
valid
()
&&
node
->
mid
==
awaited_response
)
{
auto
previous_node
=
dptr
()
->
hm_begin
(
self
,
node
);
auto
previous_node
=
dptr
()
->
hm_begin
(
self
,
node
);
auto
res
=
invoke_fun
(
self
,
auto
res
=
invoke_fun
(
self
,
...
...
cppa/policy/no_scheduling.hpp
View file @
272bbfaa
...
@@ -68,7 +68,7 @@ class no_scheduling {
...
@@ -68,7 +68,7 @@ class no_scheduling {
void
launch
(
Actor
*
self
,
execution_unit
*
)
{
void
launch
(
Actor
*
self
,
execution_unit
*
)
{
CPPA_REQUIRE
(
self
!=
nullptr
);
CPPA_REQUIRE
(
self
!=
nullptr
);
CPPA_PUSH_AID
(
self
->
id
());
CPPA_PUSH_AID
(
self
->
id
());
CPPA_LOG_TRACE
(
CPPA_
POLICY_
ARG
(
self
));
CPPA_LOG_TRACE
(
CPPA_ARG
(
self
));
intrusive_ptr
<
Actor
>
mself
{
self
};
intrusive_ptr
<
Actor
>
mself
{
self
};
self
->
attach_to_scheduler
();
self
->
attach_to_scheduler
();
std
::
thread
([
=
]
{
std
::
thread
([
=
]
{
...
...
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