InnoDB Plugin
1.0
Main Page
Data Structures
Files
File List
Globals
include
srv0conc.h
1
/*****************************************************************************
2
3
Copyright (c) 2011, 2012, Oracle and/or its affiliates. All Rights Reserved.
4
5
Portions of this file contain modifications contributed and copyrighted by
6
Google, Inc. Those modifications are gratefully acknowledged and are described
7
briefly in the InnoDB documentation. The contributions by Google are
8
incorporated with their permission, and subject to the conditions contained in
9
the file COPYING.Google.
10
11
Portions of this file contain modifications contributed and copyrighted
12
by Percona Inc.. Those modifications are
13
gratefully acknowledged and are described briefly in the InnoDB
14
documentation. The contributions by Percona Inc. are incorporated with
15
their permission, and subject to the conditions contained in the file
16
COPYING.Percona.
17
18
This program is free software; you can redistribute it and/or modify it under
19
the terms of the GNU General Public License as published by the Free Software
20
Foundation; version 2 of the License.
21
22
This program is distributed in the hope that it will be useful, but WITHOUT
23
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
24
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
25
26
You should have received a copy of the GNU General Public License along with
27
this program; if not, write to the Free Software Foundation, Inc.,
28
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
29
30
*****************************************************************************/
31
32
/**************************************************/
40
#ifndef srv_conc_h
41
#define srv_conc_h
42
47
extern
ulint srv_max_n_threads;
48
53
extern
ulong srv_thread_concurrency;
54
55
/*********************************************************************/
57
void
58
srv_conc_init(
void
);
59
/*===============*/
60
61
/*********************************************************************/
63
void
64
srv_conc_free(
void
);
65
/*===============*/
66
67
/*********************************************************************/
70
UNIV_INTERN
71
void
72
srv_conc_enter_innodb(
73
/*==================*/
74
trx_t
* trx);
77
/*********************************************************************/
80
UNIV_INTERN
81
void
82
srv_conc_force_enter_innodb(
83
/*========================*/
84
trx_t
* trx);
87
/*********************************************************************/
90
UNIV_INTERN
91
void
92
srv_conc_force_exit_innodb(
93
/*=======================*/
94
trx_t
* trx);
97
/*********************************************************************/
99
UNIV_INTERN
100
ulint
101
srv_conc_get_waiting_threads(
void
);
102
/*==============================*/
103
104
/*********************************************************************/
106
UNIV_INTERN
107
ulint
108
srv_conc_get_active_threads(
void
);
109
/*==============================*/
110
111
#endif
/* srv_conc_h */
Generated on Fri Aug 21 2015 19:14:24 for InnoDB Plugin by
1.8.1.2