MySQL 8.0.31
Source Code Documentation
mysql_cond_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2022, 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 also distributed 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 included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H
24#define COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H
25
30
31typedef void (*mysql_cond_register_t)(const char *category, PSI_cond_info *info,
32 int count);
33
35 const char *src_file, unsigned int src_line);
36
37typedef int (*mysql_cond_destroy_t)(mysql_cond_t *that, const char *src_file,
38 unsigned int src_line);
39
40typedef int (*mysql_cond_wait_t)(mysql_cond_t *that, mysql_mutex_t *mutex,
41 const char *src_file, unsigned int src_line);
42
44 const struct timespec *abstime,
45 const char *src_file,
46 unsigned int src_line);
47
48typedef int (*mysql_cond_signal_t)(mysql_cond_t *that, const char *src_file,
49 unsigned int src_line);
50
51typedef int (*mysql_cond_broadcast)(mysql_cond_t *that, const char *src_file,
52 unsigned int src_line);
53
63
64#define REQUIRES_MYSQL_COND_SERVICE REQUIRES_SERVICE(mysql_cond_v1)
65
66#endif /* COMPONENTS_SERVICES_MYSQL_COND_SERVICE_H */
static mysql_service_status_t init()
Component initialization.
Definition: audit_api_message_emit.cc:570
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:43
static int count
Definition: myisam_ftdump.cc:42
Instrumentation helpers for conditions.
void(* mysql_cond_register_t)(const char *category, PSI_cond_info *info, int count)
Definition: mysql_cond_service.h:31
int(* mysql_cond_destroy_t)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:37
int(* mysql_cond_signal_t)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:48
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:34
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:43
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:40
int(* mysql_cond_broadcast)(mysql_cond_t *that, const char *src_file, unsigned int src_line)
Definition: mysql_cond_service.h:51
ABI for instrumented mutexes.
Log info(cout, "NOTE")
stdx::expected< size_t, std::error_code > wait(int epfd, epoll_event *fd_events, size_t num_fd_events, std::chrono::milliseconds timeout)
Definition: linux_epoll.h:82
static mysql_service_status_t destroy(reference_caching_channel channel) noexcept
Definition: component.cc:49
static const char * category
Definition: sha2_password.cc:169
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:59
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:90
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:85
Condition information.
Definition: psi_cond_bits.h:87
An instrumented cond structure.
Definition: mysql_cond_bits.h:49
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:49