Commit 3816517e authored by gabime's avatar gabime

static one_hour

parent 50b81974
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment