MySQL  8.0.16
Source Code Documentation
psi_cond.h
Go to the documentation of this file.
1 /* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef MYSQL_PSI_COND_H
24 #define MYSQL_PSI_COND_H
25 
26 /**
27  @file include/mysql/psi/psi_cond.h
28  Performance schema instrumentation interface.
29 
30  @defgroup psi_abi_cond Cond Instrumentation (ABI)
31  @ingroup psi_abi
32  @{
33 */
34 
35 #include "my_inttypes.h"
36 #include "my_macros.h"
37 #include "my_psi_config.h" // IWYU pragma: keep
38 #include "my_sharedlib.h"
40 #include "psi_base.h"
41 
42 /** Entry point for the performance schema interface. */
44  /**
45  ABI interface finder.
46  Calling this method with an interface version number returns either
47  an instance of the ABI for this version, or NULL.
48  @sa PSI_COND_VERSION_1
49  @sa PSI_COND_VERSION_2
50  @sa PSI_CURRENT_COND_VERSION
51  */
52  void *(*get_interface)(int version);
53 };
54 
55 #ifdef HAVE_PSI_COND_INTERFACE
56 
57 /**
58  Performance Schema Cond Interface, version 1.
59  @since PSI_COND_VERSION_1
60 */
62  /** @sa register_cond_v1_t. */
64  /** @sa init_cond_v1_t. */
66  /** @sa destroy_cond_v1_t. */
68  /** @sa signal_cond_v1_t. */
70  /** @sa broadcast_cond_v1_t. */
72  /** @sa start_cond_wait_v1_t. */
74  /** @sa end_cond_wait_v1_t. */
76 };
77 
79 
81 
82 #endif /* HAVE_PSI_COND_INTERFACE */
83 
84 /** @} (end of group psi_abi_cond) */
85 
86 #endif /* MYSQL_PSI_MUTEX_H */
Some common macros.
void(* signal_cond_v1_t)(struct PSI_cond *cond)
Record a condition instrumentation signal event.
Definition: psi_cond_bits.h:163
Some integer typedefs for easier portability.
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:70
start_cond_wait_v1_t start_cond_wait
Definition: psi_cond.h:73
void(* end_cond_wait_v1_t)(struct PSI_cond_locker *locker, int rc)
Record a condition instrumentation wait end event.
Definition: psi_cond_bits.h:190
Performance schema instrumentation interface.
destroy_cond_v1_t destroy_cond
Definition: psi_cond.h:67
Functions related to handling of plugins and other dynamically loaded libraries.
Performance schema instrumentation interface.
register_cond_v1_t register_cond
Definition: psi_cond.h:63
void(* register_cond_v1_t)(const char *category, struct PSI_cond_info_v1 *info, int count)
Cond registration API.
Definition: psi_cond_bits.h:141
void(* broadcast_cond_v1_t)(struct PSI_cond *cond)
Record a condition instrumentation broadcast event.
Definition: psi_cond_bits.h:169
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
const string version("\ersion\)
struct PSI_cond *(* init_cond_v1_t)(PSI_cond_key key, const void *identity)
Cond instrumentation initialisation API.
Definition: psi_cond_bits.h:150
broadcast_cond_v1_t broadcast_cond
Definition: psi_cond.h:71
MYSQL_PLUGIN_IMPORT PSI_cond_service_t * psi_cond_service
Definition: psi_noop.cc:327
void(* destroy_cond_v1_t)(struct PSI_cond *cond)
Cond instrumentation destruction API.
Definition: psi_cond_bits.h:157
Performance Schema Cond Interface, version 1.
Definition: psi_cond.h:61
Entry point for the performance schema interface.
Definition: psi_cond.h:43
struct PSI_cond_locker *(* start_cond_wait_v1_t)(struct PSI_cond_locker_state_v1 *state, struct PSI_cond *cond, struct PSI_mutex *mutex, enum PSI_cond_operation op, const char *src_file, unsigned int src_line)
Record a condition instrumentation wait start event.
Definition: psi_cond_bits.h:180
init_cond_v1_t init_cond
Definition: psi_cond.h:65
signal_cond_v1_t signal_cond
Definition: psi_cond.h:69
end_cond_wait_v1_t end_cond_wait
Definition: psi_cond.h:75