Drizzled Public API Documentation

ut0wqueue.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /*******************************************************************/
26 /*******************************************************************/
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 
41 typedef struct ib_wqueue_struct ib_wqueue_t;
42 
43 /****************************************************************/
46 UNIV_INTERN
48 ib_wqueue_create(void);
49 /*===================*/
50 
51 /****************************************************************/
53 UNIV_INTERN
54 void
56 /*===========*/
57  ib_wqueue_t* wq);
59 /****************************************************************/
61 UNIV_INTERN
62 void
64 /*==========*/
65  ib_wqueue_t* wq,
66  void* item,
67  mem_heap_t* heap);
70 /****************************************************************/
73 UNIV_INTERN
74 void*
76 /*===========*/
77  ib_wqueue_t* wq);
79 /* Work queue. */
84 };
85 
86 #endif