MySQL 9.1.0
Source Code Documentation
|
A work queue. More...
Go to the source code of this file.
Functions | |
ib_wqueue_t * | ib_wqueue_create () |
Create a new work queue. More... | |
void | ib_wqueue_free (ib_wqueue_t *wq) |
Free a work queue. More... | |
void | ib_wqueue_add (ib_wqueue_t *wq, void *item, mem_heap_t *heap) |
Add a work item to the queue. More... | |
uint64_t | ib_wqueue_get_count (ib_wqueue_t *wq) |
read total number of work item to the queue. More... | |
bool | ib_wqueue_is_empty (const ib_wqueue_t *wq) |
void * | ib_wqueue_timedwait (ib_wqueue_t *wq, std::chrono::microseconds wait) |
A work queue.
Created 4/26/2006 Osku Salerma
void ib_wqueue_add | ( | ib_wqueue_t * | wq, |
void * | item, | ||
mem_heap_t * | heap | ||
) |
Add a work item to the queue.
[in] | wq | Work queue |
[in] | item | Work item |
[in] | heap | Memory heap to use for allocating the list node |
ib_wqueue_t * ib_wqueue_create | ( | void | ) |
Create a new work queue.
void ib_wqueue_free | ( | ib_wqueue_t * | wq | ) |
Free a work queue.
in: work queue
wq | in: work queue |
uint64_t ib_wqueue_get_count | ( | ib_wqueue_t * | wq | ) |
read total number of work item to the queue.
[in] | wq | Work queue |
bool ib_wqueue_is_empty | ( | const ib_wqueue_t * | wq | ) |
void * ib_wqueue_timedwait | ( | ib_wqueue_t * | wq, |
std::chrono::microseconds | wait | ||
) |