Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
a7194295
Commit
a7194295
authored
Jan 29, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix queue
parent
31315db7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
blocking_queue.h
include/c11log/details/blocking_queue.h
+1
-2
utils.h
include/utils.h
+1
-3
No files found.
include/c11log/details/blocking_queue.h
View file @
a7194295
...
...
@@ -104,8 +104,7 @@ private:
std
::
mutex
mutex_
;
std
::
condition_variable
item_pushed_cond_
;
std
::
condition_variable
item_popped_cond_
;
static
constexpr
auto
one_hour
=
std
::
chrono
::
seconds
(
3
);
static
constexpr
auto
one_hour
=
std
::
chrono
::
hours
(
1
);
};
}
...
...
include/utils.h
View file @
a7194295
...
...
@@ -35,7 +35,6 @@ inline void bench(const std::string& fn_name, const std::chrono::milliseconds &d
auto
now
=
the_clock
::
now
();
if
(
now
-
start_time
>=
duration
)
break
;
auto
p
=
now
-
lastPrintTime
;
if
(
now
-
lastPrintTime
>=
print_interval
)
{
std
::
cout
<<
fn_name
<<
": "
<<
format
(
counter
)
<<
" per sec"
<<
std
::
endl
;
...
...
@@ -55,4 +54,4 @@ inline void bench(const std::string& fn_name, const std::function<void() >& fn)
std
::
cout
<<
fn_name
<<
": "
<<
duration_cast
<
milliseconds
>
(
delta
).
count
()
<<
" ms"
<<
std
::
endl
;
}
}
\ No newline at end of file
}
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