22 using Lock = std::lock_guard<std::mutex>;
29 template <
typename... E>
37 std::optional<T>
pop() {
Thread safe queue. Just wraps std::queue protected with a lock.
std::lock_guard< std::mutex > Lock
void push(E... t)
Push onto the queue.
std::optional< T > pop()
Pop something off the queue but return nullopt if the queue is empty.