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