Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
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
Libraries
spdlog
Commits
0143d9a9
Commit
0143d9a9
authored
Apr 23, 2016
by
Gabi Melman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update async_log_helper.h
update comments
parent
0d263598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
include/spdlog/details/async_log_helper.h
include/spdlog/details/async_log_helper.h
+3
-4
No files found.
include/spdlog/details/async_log_helper.h
View file @
0143d9a9
...
...
@@ -161,8 +161,8 @@ private:
std
::
thread
_worker_thread
;
void
push_msg
(
async_msg
&&
new_msg
);
// throw last worker thread exception or if worker thread is not active
// throw last worker thread exception or if worker thread is not active
void
throw_if_bad_worker
();
// worker thread main loop
...
...
@@ -216,7 +216,7 @@ inline spdlog::details::async_log_helper::~async_log_helper()
}
//Try to push and block until succeeded
//Try to push and block until succeeded
(if the policy is not to discard when the queue is full)
inline
void
spdlog
::
details
::
async_log_helper
::
log
(
const
details
::
log_msg
&
msg
)
{
push_msg
(
async_msg
(
msg
));
...
...
@@ -224,7 +224,6 @@ inline void spdlog::details::async_log_helper::log(const details::log_msg& msg)
}
//Try to push and block until succeeded
inline
void
spdlog
::
details
::
async_log_helper
::
push_msg
(
details
::
async_log_helper
::
async_msg
&&
new_msg
)
{
throw_if_bad_worker
();
...
...
@@ -267,7 +266,7 @@ inline void spdlog::details::async_log_helper::worker_loop()
}
// process next message in the queue
// return true if this thread should still be active (
no msg with level::off
was received)
// return true if this thread should still be active (
while no terminate msg
was received)
inline
bool
spdlog
::
details
::
async_log_helper
::
process_next_msg
(
log_clock
::
time_point
&
last_pop
,
log_clock
::
time_point
&
last_flush
)
{
...
...
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