Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
Grappa::ThreadQueue Class Reference

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...
 
Workerdequeue ()
 Remove a Worker from the queue and return it. More...
 
WorkerdequeueLazy ()
 Remove a Worker from the queue and return it. More...
 
Workerfront () const
 Peek at the head of the queue. More...
 
void prefetch () const
 
uint64_t length () const
 
bool empty ()
 

Detailed Description

A queue of threads.

Definition at line 46 of file ThreadQueue.hpp.

Constructor & Destructor Documentation

Grappa::ThreadQueue::ThreadQueue ( )
inline

Definition at line 59 of file ThreadQueue.hpp.

Member Function Documentation

Worker * Grappa::ThreadQueue::dequeue ( )
inline

Remove a Worker from the queue and return it.

Definition at line 197 of file ThreadQueue.hpp.

Worker * Grappa::ThreadQueue::dequeueLazy ( )
inline

Remove a Worker from the queue and return it.

Does not change the links of the returned Worker.

Definition at line 212 of file ThreadQueue.hpp.

std::ostream& Grappa::ThreadQueue::dump ( std::ostream &  o) const
inline

Definition at line 53 of file ThreadQueue.hpp.

bool Grappa::ThreadQueue::empty ( )
inline

Definition at line 73 of file ThreadQueue.hpp.

void Grappa::ThreadQueue::enqueue ( Worker t)
inline

Add a Worker to the queue.

Definition at line 228 of file ThreadQueue.hpp.

Worker * Grappa::ThreadQueue::front ( ) const
inline

Peek at the head of the queue.

Definition at line 240 of file ThreadQueue.hpp.

uint64_t Grappa::ThreadQueue::length ( ) const
inline

Definition at line 69 of file ThreadQueue.hpp.

void Grappa::ThreadQueue::prefetch ( ) const

The documentation for this class was generated from the following file: