![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
#include <plugin_utils.h>
Public Member Functions | |
| Synchronized_queue (PSI_memory_key key) | |
| ~Synchronized_queue () override | |
| bool | empty () override | 
| Checks if the queue is empty.  More... | |
| bool | push (const T &value) override | 
| Inserts an element in the queue.  More... | |
| bool | pop (T *out) override | 
| Fetches the front of the queue and removes it.  More... | |
| bool | pop () override | 
| Pops the front of the queue removing it.  More... | |
| bool | front (T *out) override | 
| Fetches the front of the queue but does not remove it.  More... | |
| size_t | size () override | 
| Checks the queue size.  More... | |
  Public Member Functions inherited from Synchronized_queue_interface< T > | |
| virtual | ~Synchronized_queue_interface ()=default | 
Protected Attributes | |
| mysql_mutex_t | lock | 
| mysql_cond_t | cond | 
| std::queue< T, std::list< T, Malloc_allocator< T > > > | queue | 
      
  | 
  inline | 
      
  | 
  inlineoverride | 
      
  | 
  inlineoverridevirtual | 
Checks if the queue is empty.
| true | empty | 
| false | not empty | 
Implements Synchronized_queue_interface< T >.
      
  | 
  inlineoverridevirtual | 
Fetches the front of the queue but does not remove it.
| out | The fetched reference. | 
Implements Synchronized_queue_interface< T >.
Reimplemented in Abortable_synchronized_queue< T >.
      
  | 
  inlineoverridevirtual | 
Pops the front of the queue removing it.
Implements Synchronized_queue_interface< T >.
Reimplemented in Abortable_synchronized_queue< T >.
      
  | 
  inlineoverridevirtual | 
Fetches the front of the queue and removes it.
| out | The fetched reference. | 
Implements Synchronized_queue_interface< T >.
Reimplemented in Abortable_synchronized_queue< T >.
      
  | 
  inlineoverridevirtual | 
Inserts an element in the queue.
Alerts any other thread lock on pop() or front()
| value | The value to insert | 
Implements Synchronized_queue_interface< T >.
Reimplemented in Abortable_synchronized_queue< T >.
      
  | 
  inlineoverridevirtual | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |