HOG2
|
#include <SharedQueue.h>
Public Member Functions | |
SharedQueue (int maxCapacity=-1) | |
~SharedQueue () | |
bool | IsEmpty () const |
void | Add (T value) |
bool | Remove (T &item) |
void | WaitAdd (const T &value) |
void | WaitRemove (T &item) |
void | Print () |
size_t | size () |
Private Attributes | |
std::deque< T > | queue |
int | maxCapacity |
std::mutex | lock |
std::condition_variable | notFull |
std::condition_variable | notEmpty |
Definition at line 24 of file SharedQueue.h.
SharedQueue< T >::SharedQueue | ( | int | maxCapacity = -1 | ) |
Definition at line 45 of file SharedQueue.h.
SharedQueue< T >::~SharedQueue |
Definition at line 51 of file SharedQueue.h.
void SharedQueue< T >::Add | ( | T | value | ) |
Definition at line 75 of file SharedQueue.h.
Referenced by PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::AdditiveForwardThreadWorker(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BackwardThreadWorker(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::ForwardBackwardThreadWorker(), and PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::ForwardThreadWorker().
bool SharedQueue< T >::IsEmpty |
Definition at line 56 of file SharedQueue.h.
void SharedQueue< T >::Print |
Definition at line 128 of file SharedQueue.h.
bool SharedQueue< T >::Remove | ( | T & | item | ) |
Definition at line 85 of file SharedQueue.h.
Referenced by PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildAdditivePDB(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBBackward(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBForward(), and PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBForwardBackward().
size_t SharedQueue< T >::size |
Definition at line 65 of file SharedQueue.h.
void SharedQueue< T >::WaitAdd | ( | const T & | value | ) |
Definition at line 103 of file SharedQueue.h.
Referenced by PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildAdditivePDB(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBBackward(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBForward(), PDBHeuristic< TOHState< patternDisks >, TOHMove, TOH< patternDisks >, TOHState< totalDisks > >::BuildPDBForwardBackward(), and VoxelUtils::GetTriangles().
void SharedQueue< T >::WaitRemove | ( | T & | item | ) |
Definition at line 115 of file SharedQueue.h.
Referenced by VoxelUtils::ThreadedWorker().
|
mutableprivate |
Definition at line 39 of file SharedQueue.h.
|
private |
Definition at line 38 of file SharedQueue.h.
|
mutableprivate |
Definition at line 41 of file SharedQueue.h.
|
mutableprivate |
Definition at line 40 of file SharedQueue.h.
|
private |
Definition at line 37 of file SharedQueue.h.