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
b6ef4425
Commit
b6ef4425
authored
Nov 02, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation in debug mode
parent
b1bb7832
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
cppa/logging.hpp
cppa/logging.hpp
+4
-4
src/default_peer.cpp
src/default_peer.cpp
+2
-2
No files found.
cppa/logging.hpp
View file @
b6ef4425
...
@@ -143,14 +143,14 @@ class logging {
...
@@ -143,14 +143,14 @@ class logging {
#define CPPA_DO_LOG_FUN(level, message) { \
#define CPPA_DO_LOG_FUN(level, message) { \
std::ostringstream scoped_oss; scoped_oss << message; \
std::ostringstream scoped_oss; scoped_oss << message; \
::cppa::
detail::logging::instance()->log(
\
::cppa::
logging::instance()->log(
\
level, "NONE", \
level, "NONE", \
__FUNCTION__, __FILE__, __LINE__, scoped_oss.str()); \
__FUNCTION__, __FILE__, __LINE__, scoped_oss.str()); \
} CPPA_VOID_STMT
} CPPA_VOID_STMT
#define CPPA_DO_LOG_MEMBER_FUN(level, message) { \
#define CPPA_DO_LOG_MEMBER_FUN(level, message) { \
std::ostringstream scoped_oss; scoped_oss << message; \
std::ostringstream scoped_oss; scoped_oss << message; \
::cppa::
detail::logging::instance()->log(
\
::cppa::
logging::instance()->log(
\
level, ::cppa::detail::demangle(typeid(*this)).c_str(), \
level, ::cppa::detail::demangle(typeid(*this)).c_str(), \
__FUNCTION__, __FILE__, __LINE__, scoped_oss.str()); \
__FUNCTION__, __FILE__, __LINE__, scoped_oss.str()); \
} CPPA_VOID_STMT
} CPPA_VOID_STMT
...
@@ -192,7 +192,7 @@ class logging {
...
@@ -192,7 +192,7 @@ class logging {
# define CPPA_LOG_TRACE(message) \
# define CPPA_LOG_TRACE(message) \
::std::ostringstream CPPA_CONCATL(cppa_trace_helper_) ; \
::std::ostringstream CPPA_CONCATL(cppa_trace_helper_) ; \
CPPA_CONCATL(cppa_trace_helper_) << message ; \
CPPA_CONCATL(cppa_trace_helper_) << message ; \
::cppa::
detail::logging::trace_helper CPPA_CONCATL(cppa_fun_trace_helper_)
\
::cppa::
logging::trace_helper CPPA_CONCATL(cppa_fun_trace_helper_)
\
CPPA_LPAREN ::cppa::detail::demangle \
CPPA_LPAREN ::cppa::detail::demangle \
CPPA_LPAREN typeid CPPA_LPAREN decltype CPPA_LPAREN *this \
CPPA_LPAREN typeid CPPA_LPAREN decltype CPPA_LPAREN *this \
CPPA_RPAREN CPPA_RPAREN CPPA_RPAREN , \
CPPA_RPAREN CPPA_RPAREN CPPA_RPAREN , \
...
@@ -201,7 +201,7 @@ class logging {
...
@@ -201,7 +201,7 @@ class logging {
# define CPPA_LOGF_TRACE(message) \
# define CPPA_LOGF_TRACE(message) \
::std::ostringstream CPPA_CONCATL(cppa_trace_helper_) ; \
::std::ostringstream CPPA_CONCATL(cppa_trace_helper_) ; \
CPPA_CONCATL(cppa_trace_helper_) << message ; \
CPPA_CONCATL(cppa_trace_helper_) << message ; \
::cppa::
detail::logging::trace_helper CPPA_CONCATL(cppa_fun_trace_helper_)
\
::cppa::
logging::trace_helper CPPA_CONCATL(cppa_fun_trace_helper_)
\
CPPA_LPAREN "NONE" , \
CPPA_LPAREN "NONE" , \
__func__ , __FILE__ , __LINE__ , \
__func__ , __FILE__ , __LINE__ , \
CPPA_CONCATL(cppa_trace_helper_) .str() CPPA_RPAREN
CPPA_CONCATL(cppa_trace_helper_) .str() CPPA_RPAREN
...
...
src/default_peer.cpp
View file @
b6ef4425
...
@@ -265,7 +265,7 @@ void default_peer::deliver(const message_header& hdr, any_tuple msg) {
...
@@ -265,7 +265,7 @@ void default_peer::deliver(const message_header& hdr, any_tuple msg) {
}
}
else
{
else
{
CPPA_LOG_DEBUG
(
"async message with "
CPPA_LOG_DEBUG
(
"async message with "
<<
(
msg
.
sender
()
?
""
:
"in"
)
<<
(
hdr
.
sender
?
""
:
"in"
)
<<
"valid sender"
);
<<
"valid sender"
);
receiver
->
enqueue
(
hdr
.
sender
.
get
(),
move
(
msg
));
receiver
->
enqueue
(
hdr
.
sender
.
get
(),
move
(
msg
));
}
}
...
@@ -350,7 +350,7 @@ void default_peer::enqueue(const message_header& hdr, const any_tuple& msg) {
...
@@ -350,7 +350,7 @@ void default_peer::enqueue(const message_header& hdr, const any_tuple& msg) {
<<
endl
;
<<
endl
;
return
;
return
;
}
}
CPPA_LOG_DEBUG
(
"serialized: "
<<
to_string
(
msg
.
content
()
));
CPPA_LOG_DEBUG
(
"serialized: "
<<
to_string
(
msg
));
size
=
(
m_wr_buf
.
size
()
-
before
)
-
sizeof
(
std
::
uint32_t
);
size
=
(
m_wr_buf
.
size
()
-
before
)
-
sizeof
(
std
::
uint32_t
);
// update size in buffer
// update size in buffer
memcpy
(
m_wr_buf
.
data
()
+
before
,
&
size
,
sizeof
(
std
::
uint32_t
));
memcpy
(
m_wr_buf
.
data
()
+
before
,
&
size
,
sizeof
(
std
::
uint32_t
));
...
...
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