|
drizzle
C++ MySQL-protocol-compatible database server
|
Go to the source code of this file.
Classes | |
| struct | ib_wqueue_struct |
Macros | |
| #define | IB_WORK_QUEUE_H |
Typedefs | |
| typedef struct ib_wqueue_struct | ib_wqueue_t |
Functions | |
| UNIV_INTERN ib_wqueue_t * | ib_wqueue_create (void) |
| UNIV_INTERN void | ib_wqueue_free (ib_wqueue_t *wq) |
| UNIV_INTERN void | ib_wqueue_add (ib_wqueue_t *wq, void *item, mem_heap_t *heap) |
| UNIV_INTERN void * | ib_wqueue_wait (ib_wqueue_t *wq) |
| #define IB_WORK_QUEUE_H |
A Work queue. Threads can add work items to the queue and other threads can wait for work items to be available and take them off the queue for processing.
Definition at line 34 of file ut0wqueue.h.
| typedef struct ib_wqueue_struct ib_wqueue_t |
Definition at line 41 of file ut0wqueue.h.
| UNIV_INTERN void ib_wqueue_add | ( | ib_wqueue_t * | wq, |
| void * | item, | ||
| mem_heap_t * | heap ) |
Add a work item to the queue. in: memory heap to use for allocating the list node
Add a work item to the queue.
| wq | in: work queue |
| item | in: work item |
| heap | in: memory heap to use for allocating the list node |
Definition at line 69 of file ut0wqueue.cc.
| UNIV_INTERN ib_wqueue_t * ib_wqueue_create | ( | void | ) |
| UNIV_INTERN void ib_wqueue_free | ( | ib_wqueue_t * | wq | ) |
Free a work queue. in: work queue
Free a work queue.
| wq | in: work queue |
Definition at line 52 of file ut0wqueue.cc.
| UNIV_INTERN void * ib_wqueue_wait | ( | ib_wqueue_t * | wq | ) |
Wait for a work item to appear in the queue.
Wait for a work item to appear in the queue.
| wq | in: work queue |
Definition at line 89 of file ut0wqueue.cc.