diff --git a/include/ircd/ctx/queue.h b/include/ircd/ctx/queue.h index 0c7eb29de..7363fed4b 100644 --- a/include/ircd/ctx/queue.h +++ b/include/ircd/ctx/queue.h @@ -20,7 +20,7 @@ template class ircd::ctx::queue { dock d; - std::queue q; + std::deque q; size_t w {0}; public: @@ -54,7 +54,7 @@ void ircd::ctx::queue::push(T&& t) noexcept { - q.push(std::forward(t)); + q.push_back(std::forward(t)); d.notify(); } @@ -62,7 +62,7 @@ template void ircd::ctx::queue::push(const T &t) { - q.push(t); + q.push_back(t); d.notify(); } @@ -92,7 +92,7 @@ ircd::ctx::queue::pop() assert(!q.empty()); auto ret(std::move(q.front())); - q.pop(); + q.pop_front(); return ret; }