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
3816517e
Commit
3816517e
authored
Mar 01, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static one_hour
parent
50b81974
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/c11log/details/blocking_queue.h
include/c11log/details/blocking_queue.h
+2
-2
No files found.
include/c11log/details/blocking_queue.h
View file @
3816517e
...
...
@@ -58,7 +58,7 @@ public:
// If the queue is full, block the calling thread until there is room.
template
<
typename
TT
>
void
push
(
TT
&&
item
)
{
static
constexpr
std
::
chrono
::
hours
one_hour
(
1
);
constexpr
std
::
chrono
::
hours
one_hour
(
1
);
while
(
!
push
(
std
::
forward
<
TT
>
(
item
),
one_hour
));
}
...
...
@@ -86,7 +86,7 @@ public:
// Pop a copy of the front item in the queue into the given item ref.
// If the queue is empty, block the calling thread util there is item to pop.
void
pop
(
T
&
item
)
{
static
constexpr
std
::
chrono
::
hours
one_hour
(
1
);
constexpr
std
::
chrono
::
hours
one_hour
(
1
);
while
(
!
pop
(
item
,
one_hour
));
}
...
...
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