35 #ifndef _BLAZE_UTIL_THREADPOOL_TASKQUEUE_H_
36 #define _BLAZE_UTIL_THREADPOOL_TASKQUEUE_H_
49 namespace threadpool {
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 size() const
Returns the current size of the task queue.
Definition: TaskQueue.h:190
Tasks tasks_
FIFO container for the contained tasks.
Definition: TaskQueue.h:119
void swap(TaskQueue &tq)
Swapping the contents of two task queues.
Definition: TaskQueue.h:273
TaskQueue()
Default constructor for TaskQueue.
Definition: TaskQueue.h:137
void swap(TaskQueue &a, TaskQueue &b)
Swapping the contents of two task queues.
Definition: TaskQueue.h:304
~TaskQueue()
Destructor for the TaskQueue class.
Definition: TaskQueue.h:156
SizeType maxSize() const
Returns the maximum possible size of a task queue.
Definition: TaskQueue.h:176
Header file for the Task base class.
boost::function< void(void)> Task
Handle for a single, executable task.
Definition: Task.h:60
void push(Task task)
Adding a task to the end of the task queue.
Definition: TaskQueue.h:225
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
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