#include <ppqsort/parallel/cpp/task_stack.h>
TaskStack class
Constructors, destructors, conversion operators
Public functions
- auto try_push(taskType&& task) -> bool
- Try to push a task to the stack.
- auto push(taskType&& task) -> void
- Push a task to the stack. If the stack is held by another thread, wait until it is released.
- auto try_pop() -> std::optional<taskType>
- Try to pop a task from the stack.
- auto pop() -> std::optional<taskType>
- Pop a task from the stack. If the stack is held by another thread, wait until it is released.