From 3816517e548381e9127deba8dd3851b44b1fcdb3 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 1 Mar 2014 14:46:20 +0200 Subject: [PATCH] static one_hour --- include/c11log/details/blocking_queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c11log/details/blocking_queue.h b/include/c11log/details/blocking_queue.h index 94641a26..50a5b6c1 100644 --- a/include/c11log/details/blocking_queue.h +++ b/include/c11log/details/blocking_queue.h @@ -58,7 +58,7 @@ public: // If the queue is full, block the calling thread until there is room. template void push(TT&& item) { - static constexpr std::chrono::hours one_hour(1); + constexpr std::chrono::hours one_hour(1); while (!push(std::forward(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)); }