35#ifndef _BLAZE_UTIL_THREADPOOL_TASKQUEUE_H_
36#define _BLAZE_UTIL_THREADPOOL_TASKQUEUE_H_
275 tasks_.swap( tq.tasks_ );
Header file for the Task base class.
Task queue for the thread pool.
Definition: TaskQueue.h:65
void swap(TaskQueue &tq) noexcept
Swapping the contents of two task queues.
Definition: TaskQueue.h:273
TaskQueue()
Default constructor for TaskQueue.
Definition: TaskQueue.h:137
bool isEmpty() const
Returns true if the task queue has no elements.
Definition: TaskQueue.h:202
std::deque< Task > Tasks
FIFO container for tasks.
Definition: TaskQueue.h:68
~TaskQueue()
Destructor for the TaskQueue class.
Definition: TaskQueue.h:156
SizeType size() const
Returns the current size of the task queue.
Definition: TaskQueue.h:190
Task pop()
Returns the task from the front of the task queue.
Definition: TaskQueue.h:237
Tasks::size_type SizeType
Size type of the task queue.
Definition: TaskQueue.h:73
SizeType maxSize() const
Returns the maximum possible size of a task queue.
Definition: TaskQueue.h:176
void push(Task task)
Adding a task to the end of the task queue.
Definition: TaskQueue.h:225
void clear()
Removing all tasks from the task queue.
Definition: TaskQueue.h:251
Tasks tasks_
FIFO container for the contained tasks.
Definition: TaskQueue.h:119
std::function< void(void)> Task
Handle for a single, executable task.
Definition: Task.h:60
void swap(TaskQueue &a, TaskQueue &b) noexcept
Swapping the contents of two task queues.
Definition: TaskQueue.h:304