Drizzled Public API Documentation

thr0loc.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1995, 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 /* This module implements storage private to each thread,
27 a capability useful in some situations like storing the
28 OS handle to the current thread, or its priority. */
29 
30 #pragma once
31 #ifndef thr0loc_h
32 #define thr0loc_h
33 
34 #include "univ.i"
35 #include "os0thread.h"
36 
37 /****************************************************************/
39 UNIV_INTERN
40 void
41 thr_local_init(void);
42 /*================*/
43  /****************************************************************/
45 UNIV_INTERN
46 void
47 thr_local_close(void);
48 /*=================*/
49 /*******************************************************************/
51 UNIV_INTERN
52 void
53 thr_local_create(void);
54 /*==================*/
55 /*******************************************************************/
57 UNIV_INTERN
58 void
60 /*===========*/
61  os_thread_id_t id);
62 /*******************************************************************/
65 UNIV_INTERN
66 ulint
68 /*==================*/
69  os_thread_id_t id);
70 /*******************************************************************/
72 UNIV_INTERN
73 void
75 /*==================*/
76  os_thread_id_t id,
77  ulint slot_no);
78 /*******************************************************************/
82 UNIV_INTERN
83 ibool*
85 /*=============================*/
86 
87 #ifndef UNIV_NONINL
88 #include "thr0loc.ic"
89 #endif
90 
91 #endif