~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/os0thread.h

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
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
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
57
57
/* Define a function pointer type to use in a typecast */
58
58
typedef void* (*os_posix_f_t) (void*);
59
59
 
60
 
#ifdef HAVE_PSI_INTERFACE
61
 
/* Define for performance schema registration key */
62
 
typedef unsigned int    mysql_pfs_key_t;
63
 
#endif
64
 
 
65
60
/***************************************************************//**
66
61
Compares two thread ids for equality.
67
62
@return TRUE if equal */
92
87
os_thread_create(
93
88
/*=============*/
94
89
#ifndef __WIN__
95
 
        os_posix_f_t            start_f,
 
90
                 os_posix_f_t            start_f,
96
91
#else
97
92
        ulint (*start_f)(void*),                /*!< in: pointer to function
98
93
                                                from which to start */
101
96
                                                function */
102
97
        os_thread_id_t*         thread_id);     /*!< out: id of the created
103
98
                                                thread, or NULL */
 
99
 
104
100
/*****************************************************************//**
105
101
Exits the current thread. */
106
102
UNIV_INTERN