InnoDB Plugin  1.0
Data Structures | Functions
ut0wqueue.h File Reference
#include "ut0list.h"
#include "mem0mem.h"
#include "os0sync.h"
#include "sync0types.h"
Include dependency graph for ut0wqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ib_wqueue_t

Functions

UNIV_INTERN ib_wqueue_tib_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)
ibool ib_wqueue_is_empty (const ib_wqueue_t *wq)
UNIV_INTERN void * ib_wqueue_wait (ib_wqueue_t *wq)
void * ib_wqueue_timedwait (ib_wqueue_t *wq, ib_time_t wait_in_usecs)

Detailed Description

A work queue

Created 4/26/2006 Osku Salerma

Function Documentation

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

Parameters
wqin: work queue
itemin: work item
UNIV_INTERN ib_wqueue_t* ib_wqueue_create ( void  )

Create a new work queue.

Returns
work queue
UNIV_INTERN void ib_wqueue_free ( ib_wqueue_t wq)

Free a work queue. in: work queue

UNIV_INTERN void* ib_wqueue_wait ( ib_wqueue_t wq)

Wait for a work item to appear in the queue.

Returns
work item in: work queue