MySQL 9.1.0
Source Code Documentation
|
A work queue. More...
#include "ut0wqueue.h"
#include <stddef.h>
#include <sys/types.h>
#include "mem0mem.h"
#include "ut0list.h"
Classes | |
struct | ib_wqueue_t |
Functions | |
ib_wqueue_t * | ib_wqueue_create (void) |
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... | |
void * | ib_wqueue_timedwait (ib_wqueue_t *wq, std::chrono::microseconds wait) |
bool | ib_wqueue_is_empty (const ib_wqueue_t *wq) |
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 | ||
) |