MySQL 8.0.40
Source Code Documentation
|
Interface that defines a queue protected against multi thread access. More...
#include <plugin_utils.h>
Public Member Functions | |
virtual | ~Synchronized_queue_interface ()=default |
virtual bool | empty ()=0 |
Checks if the queue is empty. More... | |
virtual bool | push (const T &value)=0 |
Inserts an element in the queue. More... | |
virtual bool | pop (T *out)=0 |
Fetches the front of the queue and removes it. More... | |
virtual bool | pop ()=0 |
Pops the front of the queue removing it. More... | |
virtual bool | front (T *out)=0 |
Fetches the front of the queue but does not remove it. More... | |
virtual size_t | size ()=0 |
Checks the queue size. More... | |
Interface that defines a queue protected against multi thread access.
|
virtualdefault |
|
pure virtual |
Checks if the queue is empty.
true | empty |
false | not empty |
Implemented in Synchronized_queue< T >.
|
pure virtual |
Fetches the front of the queue but does not remove it.
out | The fetched reference. |
Implemented in Synchronized_queue< T >, and Abortable_synchronized_queue< T >.
|
pure virtual |
Pops the front of the queue removing it.
Implemented in Synchronized_queue< T >, and Abortable_synchronized_queue< T >.
|
pure virtual |
Fetches the front of the queue and removes it.
out | The fetched reference. |
Implemented in Synchronized_queue< T >, and Abortable_synchronized_queue< T >.
|
pure virtual |
Inserts an element in the queue.
Alerts any other thread lock on pop() or front()
value | The value to insert |
Implemented in Synchronized_queue< T >, and Abortable_synchronized_queue< T >.
|
pure virtual |