This class is used to write items to the queue. More...
#include "thread_queue.h"
Public Types | |
using | item_type = T |
Public Member Functions | |
Item (const Writer &writer) | |
Construct a Writer::Item object. More... | |
~Item () | |
Unregister the parent Writer from the queue. More... | |
bool | write () |
Push the item onto the queue. More... | |
T & | operator* () const throw () |
T * | operator-> () const throw () |
This class is used to write items to the queue.
Items cannot be written directly onto a Thread::Queue queue. An object of this class must be instantiated and used to write to the queue.
Definition at line 395 of file thread_queue.h.
using MR::Thread::Queue< T >::Writer::Item::item_type = T |
Definition at line 411 of file thread_queue.h.
|
inline |
Construct a Writer::Item object.
The Writer::Item object can only be instantiated from a Writer object, ensuring that the corresponding section of code has already registered as a writer with the queue. The destructor for this object will unregister from the queue.
Definition at line 405 of file thread_queue.h.
|
inline |
Unregister the parent Writer from the queue.
Definition at line 407 of file thread_queue.h.
|
inline |
Definition at line 417 of file thread_queue.h.
|
inline |
Definition at line 420 of file thread_queue.h.
|
inline |
Push the item onto the queue.
Definition at line 414 of file thread_queue.h.