MySQL 8.0.40
Source Code Documentation
mysql_cond_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H
25#define COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H
26
31
32typedef void (*mysql_cond_register_t)(const char *category, PSI_cond_info *info,
33 int count);
34
36 const char *src_file, unsigned int src_line);
37
38typedef int (*mysql_cond_destroy_t)(mysql_cond_t *that, const char *src_file,
39 unsigned int src_line);
40
41typedef int (*mysql_cond_wait_t)(mysql_cond_t *that, mysql_mutex_t *mutex,
42 const char *src_file, unsigned int src_line);
43
45 const struct timespec *abstime,
46 const char *src_file,
47 unsigned int src_line);
48
49typedef int (*mysql_cond_signal_t)(mysql_cond_t *that, const char *src_file,
50 unsigned int src_line);
51
52typedef int (*mysql_cond_broadcast)(mysql_cond_t *that, const char *src_file,
53 unsigned int src_line);
54
64
65#define REQUIRES_MYSQL_COND_SERVICE REQUIRES_SERVICE(mysql_cond_v1)
66
67#endif /* COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H */
static mysql_service_status_t init()
Component initialization.
Definition: audit_api_message_emit.cc:571
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:44
static int count
Definition: myisam_ftdump.cc:43
Instrumentation helpers for conditions.
void(* mysql_cond_register_t)(const char *category, PSI_cond_info *info, int count)
Definition: mysql_cond_service.h:32
int(* mysql_cond_destroy_t)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:38
int(* mysql_cond_signal_t)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:49
int(* mysql_cond_init_t)(PSI_cond_key key, mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:35
int(* mysql_cond_timedwait_t)(mysql_cond_t *that, mysql_mutex_t *mutex, const struct timespec *abstime, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:44
int(* mysql_cond_wait_t)(mysql_cond_t *that, mysql_mutex_t *mutex, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:41
int(* mysql_cond_broadcast)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:52
ABI for instrumented mutexes.
Log info(cout, "NOTE")
static int destroy(mysql_cond_t *that, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:54
static int broadcast(mysql_cond_t *that, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:95
static int signal(mysql_cond_t *that, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:87
static int timedwait(mysql_cond_t *that, mysql_mutex_t *mutex_arg, const struct timespec *abstime, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:73
static int wait(mysql_cond_t *that, mysql_mutex_t *mutex_arg, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:63
static const char * category
Definition: sha2_password.cc:170
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
Condition information.
Definition: psi_cond_bits.h:88
An instrumented cond structure.
Definition: mysql_cond_bits.h:50
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50