Head (label) of an intrusive doubly linked list of Entry objects; insert, jam and remove hold a spin lock, their NL variants do not.
More...
#include <Queue.hh>
Inherited by Pds::Queue< PoolEntry > [private], Pds::Queue< Pds::Routine > [private], and Pds::QueueSS< T > [private].
|
| | List () |
| | Construct an empty list (both links point at the list label).
|
| |
| Entry * | empty () const |
| | Return the list label address, which atHead() and remove() return when the list is empty.
|
| |
| Entry * | insert (Entry *) |
| | Under the lock, append entry at the tail and return the entry it was inserted after.
|
| |
| Entry * | insertNL (Entry *) |
| | Append entry at the tail without locking and return the entry it was inserted after.
|
| |
| Entry * | jam (Entry *) |
| | Under the lock, insert entry at the head and return the entry it was inserted after.
|
| |
| Entry * | remove () |
| | Under the lock, unlink and return the head entry; returns empty() if the list is empty.
|
| |
| Entry * | removeNL () |
| | Unlink and return the head entry without locking; returns empty() if the list is empty.
|
| |
| Entry * | remove (Entry *) |
| | Under the lock, unlink entry and return it.
|
| |
| Entry * | atHead () const |
| | Return the head entry (empty() if the list is empty).
|
| |
| Entry * | atTail () const |
| | Return the tail entry (empty() if the list is empty).
|
| |
Head (label) of an intrusive doubly linked list of Entry objects; insert, jam and remove hold a spin lock, their NL variants do not.
◆ List()
Construct an empty list (both links point at the list label).
◆ atHead()
Return the head entry (empty() if the list is empty).
◆ atTail()
Return the tail entry (empty() if the list is empty).
◆ empty()
Return the list label address, which atHead() and remove() return when the list is empty.
◆ insert()
Under the lock, append entry at the tail and return the entry it was inserted after.
◆ insertNL()
Append entry at the tail without locking and return the entry it was inserted after.
◆ jam()
Under the lock, insert entry at the head and return the entry it was inserted after.
◆ remove() [1/2]
Under the lock, unlink and return the head entry; returns empty() if the list is empty.
◆ remove() [2/2]
Under the lock, unlink entry and return it.
◆ removeNL()
Unlink and return the head entry without locking; returns empty() if the list is empty.
The documentation for this class was generated from the following file: