|
R-Type
|
Interface for queue that is thread safe. More...
#include <ISafeQueue.hpp>
Public Member Functions | |
| virtual | ~ISafeQueue ()=default |
| Destructor. More... | |
| virtual void | push (T value)=0 |
| Push in queue. More... | |
| virtual bool | tryPop (T &value)=0 |
| Try to pop a value from the queue. More... | |
| virtual T | pop ()=0 |
| Pop a value from the queue. More... | |
Interface for queue that is thread safe.
| T | The type contained in the queue |
|
virtualdefault |
Destructor.
|
pure virtual |
Pop a value from the queue.
Implemented in SafeQueue< T >, and SafeQueue< struct RType::Event >.
|
pure virtual |
|
pure virtual |
Try to pop a value from the queue.
| value | Reference to be filled withthe popped value |
Implemented in SafeQueue< T >.