A queue of threads. More...
#include <ThreadQueue.hpp>
Public Member Functions | |
std::ostream & | dump (std::ostream &o) const |
ThreadQueue () | |
void | enqueue (Worker *t) |
Add a Worker to the queue. More... | |
Worker * | dequeue () |
Remove a Worker from the queue and return it. More... | |
Worker * | dequeueLazy () |
Remove a Worker from the queue and return it. More... | |
Worker * | front () const |
Peek at the head of the queue. More... | |
void | prefetch () const |
uint64_t | length () const |
bool | empty () |
A queue of threads.
Definition at line 35 of file ThreadQueue.hpp.
|
inline |
Definition at line 48 of file ThreadQueue.hpp.
|
inline |
Remove a Worker from the queue and return it.
Definition at line 186 of file ThreadQueue.hpp.
|
inline |
Remove a Worker from the queue and return it.
Does not change the links of the returned Worker.
Definition at line 201 of file ThreadQueue.hpp.
|
inline |
Definition at line 42 of file ThreadQueue.hpp.
|
inline |
Definition at line 62 of file ThreadQueue.hpp.
|
inline |
Add a Worker to the queue.
Definition at line 217 of file ThreadQueue.hpp.
|
inline |
Peek at the head of the queue.
Definition at line 229 of file ThreadQueue.hpp.
|
inline |
Definition at line 58 of file ThreadQueue.hpp.
void Grappa::ThreadQueue::prefetch | ( | ) | const |