Queue of T over List (private base) whose insert, remove, atHead and atTail hold a pthread mutex (per the header comment, re-entrant but slow).
More...
#include <QueueSlowSafeUx.hh>
Inherits Pds::List.
|
| | QueueSS () |
| | Initialize the mutex.
|
| |
| | ~QueueSS () |
| | Destroy the mutex.
|
| |
| T * | empty () const |
| | Return the list label as T*, without locking.
|
| |
| T * | insert (Entry *entry) |
| | Append entry at the tail while holding the mutex; returns the entry it was inserted after.
|
| |
| T * | remove () |
| | Remove and return the head entry while holding the mutex (the list label if empty).
|
| |
| T * | atHead () const |
| | Return the head entry while holding the mutex.
|
| |
| T * | atTail () const |
| | Return the tail entry while holding the mutex.
|
| |
template<class T>
class Pds::QueueSS< T >
Queue of T over List (private base) whose insert, remove, atHead and atTail hold a pthread mutex (per the header comment, re-entrant but slow).
Note that atHead() and atTail() are const but call the non-const lock helpers.
◆ QueueSS()
◆ ~QueueSS()
◆ atHead()
Return the head entry while holding the mutex.
◆ atTail()
Return the tail entry while holding the mutex.
◆ empty()
Return the list label as T*, without locking.
◆ insert()
Append entry at the tail while holding the mutex; returns the entry it was inserted after.
◆ remove()
Remove and return the head entry while holding the mutex (the list label if empty).
The documentation for this class was generated from the following file: