15 template <
typename Type>
18 std::queue<Type> queue;
28 std::unique_lock<std::mutex> lock(mutex);
29 queue.push(std::forward<T>(value));
35 std::unique_lock<std::mutex> lock(mutex);
39 Type value = queue.front();
46 std::unique_lock<std::mutex> lock(mutex);
#define NAMESPACE_SPH_END
Wrapper of type value of which may or may not be present.
const NothingType NOTHING
ConcurrentQueue()=default
void push(T &&value)
Pushes the element to the back of the queue. This is a thread-safe operation.
bool empty()
Checks whether the queue is empty. This is a thread-safe operation.
Wrapper of type value of which may or may not be present.