Public Types | |
|
typedef std::shared_ptr < TaskQueue > | shared |
Public Member Functions | |
| TaskQueue (const size_t capacity=DefaultMinimumCapacity) | |
| TaskQueue (Log::shared log, const size_t capacity=DefaultMinimumCapacity) | |
| TaskQueue (const TaskQueue &other) | |
| TaskQueue & | operator= (const TaskQueue &other) |
| size_t | size (void) const |
| bool | empty (void) const |
| void | clear (void) |
| Task::shared | top (void) const |
| void | push (Task::shared &task) |
| void | push (Task::shared &task, const std::chrono::system_clock::duration &delay, int priority=0) |
| void | push (Task::shared &task, const std::chrono::system_clock::time_point &time, int priority=0) |
| void | push (Task::shared &task, time_t sec, suseconds_t usec=0, int priority=0) |
| void | push (Task::shared &task, timeval &tv, int priority=0) |
| bool | repush (Task::shared &task, const std::chrono::system_clock::duration &delay, int priority=0, bool strict=false) |
| bool | repush (Task::shared &task, const std::chrono::system_clock::time_point &time, int priority=0, bool strict=false) |
| bool | repush (Task::shared &task, time_t sec, suseconds_t usec=0, int priority=0, bool strict=false) |
| bool | repush (Task::shared &task, timeval &tv, int priority=0, bool strict=false) |
| void | pop (void) |
| bool | erase (Task::shared &task, bool firstonly=true) |
| bool | erase (void *object) |
| size_t | capacity (void) const |
| void | reserve (size_t capacity) |
| void | print (void) const |
| void | setLog (Log::shared log) |
Static Public Attributes | |
| static const size_t | DefaultMinimumCapacity = 16 |
Protected Attributes | |
| Log::shared | libutilxx__log |
| std::vector< Task::shared > | heap |
Definition at line 25 of file TaskQueue.h.
1.6.1