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


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

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

Create a new work queue.

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.

work item in: work queue