drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
ut0wqueue.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/*******************************************************************/
25
26/*******************************************************************/
31
32#pragma once
33#ifndef IB_WORK_QUEUE_H
34#define IB_WORK_QUEUE_H
35
36#include "ut0list.h"
37#include "mem0mem.h"
38#include "os0sync.h"
39#include "sync0types.h"
40
41typedef struct ib_wqueue_struct ib_wqueue_t;
42
43/****************************************************************/
46UNIV_INTERN
47ib_wqueue_t*
49/*===================*/
50
51/****************************************************************/
53UNIV_INTERN
54void
56/*===========*/
57 ib_wqueue_t* wq);
58
59/****************************************************************/
61UNIV_INTERN
62void
64/*==========*/
65 ib_wqueue_t* wq,
66 void* item,
67 mem_heap_t* heap);
69
70/****************************************************************/
73UNIV_INTERN
74void*
76/*===========*/
77 ib_wqueue_t* wq);
78
79/* Work queue. */
85
86#endif
os_event_struct_t * os_event_t
Definition os0sync.h:58
os_event_t event
Definition ut0wqueue.h:83
ib_list_t * items
Definition ut0wqueue.h:82
#define mutex_t
Definition sync0types.h:31
UNIV_INTERN void ib_wqueue_free(ib_wqueue_t *wq)
Definition ut0wqueue.cc:52
UNIV_INTERN void ib_wqueue_add(ib_wqueue_t *wq, void *item, mem_heap_t *heap)
Definition ut0wqueue.cc:69
UNIV_INTERN ib_wqueue_t * ib_wqueue_create(void)
Definition ut0wqueue.cc:33
UNIV_INTERN void * ib_wqueue_wait(ib_wqueue_t *wq)
Definition ut0wqueue.cc:89