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
e7ec922c
Commit
e7ec922c
authored
Jan 06, 2017
by
Gabi Melman
Committed by
GitHub
Jan 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update async_log_helper.h
removed empty lines
parent
38456118
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
include/spdlog/details/async_log_helper.h
include/spdlog/details/async_log_helper.h
+0
-12
No files found.
include/spdlog/details/async_log_helper.h
View file @
e7ec922c
...
...
@@ -229,8 +229,6 @@ inline spdlog::details::async_log_helper::~async_log_helper()
inline
void
spdlog
::
details
::
async_log_helper
::
log
(
const
details
::
log_msg
&
msg
)
{
push_msg
(
async_msg
(
msg
));
}
inline
void
spdlog
::
details
::
async_log_helper
::
push_msg
(
details
::
async_log_helper
::
async_msg
&&
new_msg
)
...
...
@@ -246,7 +244,6 @@ inline void spdlog::details::async_log_helper::push_msg(details::async_log_helpe
}
while
(
!
_q
.
enqueue
(
std
::
move
(
new_msg
)));
}
}
// optionally wait for the queue be empty and request flush from the sinks
...
...
@@ -281,10 +278,8 @@ inline void spdlog::details::async_log_helper::worker_loop()
// 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
)
{
async_msg
incoming_async_msg
;
if
(
_q
.
dequeue
(
incoming_async_msg
))
{
last_pop
=
details
::
os
::
now
();
...
...
@@ -361,7 +356,6 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
if
(
time_since_op
<=
microseconds
(
100
))
return
std
::
this_thread
::
yield
();
// sleep for 20 ms upto 200 ms
if
(
time_since_op
<=
milliseconds
(
200
))
return
sleep_for
(
milliseconds
(
20
));
...
...
@@ -378,13 +372,7 @@ inline void spdlog::details::async_log_helper::wait_empty_q()
{
sleep_or_yield
(
details
::
os
::
now
(),
last_op
);
}
}
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