SchedulingPolicy which implements LIFO ordering. More...
#include <scheduling_policies.hpp>
Public Types | |
typedef Task | task_type |
Indicates the scheduler's task type. More... | |
Public Member Functions | |
void | clear () |
bool | empty () const |
void | pop () |
bool | push (task_type const &task) |
size_t | size () const |
task_type const & | top () const |
Protected Attributes | |
std::deque< task_type > | m_container |
Internal task container. More... | |
SchedulingPolicy which implements LIFO ordering.
This container implements a LIFO scheduling policy. The last task to be added to the scheduler will be the first to be removed. LIFO stands for "last in, first out".
Task | A function object which implements the operator()(void). |
Definition at line 118 of file scheduling_policies.hpp.
typedef Task boost::threadpool::lifo_scheduler< Task >::task_type |
Indicates the scheduler's task type.
Definition at line 121 of file scheduling_policies.hpp.
|
inline |
Removes all tasks from the scheduler.
Definition at line 172 of file scheduling_policies.hpp.
|
inline |
Checks if the scheduler is empty.
Definition at line 165 of file scheduling_policies.hpp.
|
inline |
Removes the task which should be executed next.
Definition at line 139 of file scheduling_policies.hpp.
|
inline |
Adds a new task to the scheduler.
task | The task object. |
Definition at line 131 of file scheduling_policies.hpp.
|
inline |
Gets the current number of tasks in the scheduler.
Definition at line 156 of file scheduling_policies.hpp.
|
inline |
Gets the task which should be executed next.
Definition at line 147 of file scheduling_policies.hpp.
|
protected |
Internal task container.
Definition at line 124 of file scheduling_policies.hpp.