This class is used to read items from the queue. More...
#include "thread_queue.h"
Public Types | |
using | item_type = T |
Public Member Functions | |
Item (const Reader &reader) | |
Construct a Reader::Item object. More... | |
~Item () | |
Unregister the parent Reader from the queue. More... | |
bool | read () |
Get next item from the queue. More... | |
T * | stash () throw () |
void | recycle (T *item) const throw () |
T & | operator* () const throw () |
T * | operator-> () const throw () |
bool | operator! () const throw () |
This class is used to read items from the queue.
Items cannot be read directly from a Thread::Queue queue. An object of this class must be instanciated and used to read from the queue.
Definition at line 465 of file thread_queue.h.
using MR::Thread::Queue< T >::Reader::Item::item_type = T |
Definition at line 481 of file thread_queue.h.
|
inline |
Construct a Reader::Item object.
The Reader::Item object can only be instantiated from a Reader object, ensuring that the corresponding section of code has already registered as a reader with the queue. The destructor for this object will unregister from the queue.
Definition at line 475 of file thread_queue.h.
|
inline |
Unregister the parent Reader from the queue.
Definition at line 477 of file thread_queue.h.
|
inline |
Definition at line 501 of file thread_queue.h.
|
inline |
Definition at line 495 of file thread_queue.h.
|
inline |
Definition at line 498 of file thread_queue.h.
|
inline |
Get next item from the queue.
Definition at line 484 of file thread_queue.h.
|
inline |
Definition at line 492 of file thread_queue.h.
|
inline |
Definition at line 487 of file thread_queue.h.