MySQL 8.4.2
Source Code Documentation
mysql_cond.h
Go to the documentation of this file.
1/* Copyright (c) 2008, 2024, Oracle and/or its affiliates.
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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_MYSQL_COND_H
25#define COMPONENTS_SERVICES_MYSQL_COND_H
26
30
31#define REQUIRES_MYSQL_COND_SERVICE REQUIRES_SERVICE(mysql_cond_v1)
32#define REQUIRES_MYSQL_COND_SERVICE_PLACEHOLDER \
33 REQUIRES_SERVICE_PLACEHOLDER(mysql_cond_v1)
34
36
37#define MYSQL_COND_CALL(M) mysql_service_mysql_cond_v1->M
38
39#define mysql_cond_register(P1, P2, P3) \
40 MYSQL_COND_CALL(register_info)(P1, P2, P3)
41
42#define mysql_cond_init(K, C) mysql_cond_init_with_src(K, C, __FILE__, __LINE__)
43#define mysql_cond_init_with_src(K, C, F, L) MYSQL_COND_CALL(init)(K, C, F, L)
44
45#define mysql_cond_destroy(C) mysql_cond_destroy_with_src(C, __FILE__, __LINE__)
46#define mysql_cond_destroy_with_src(C, F, L) MYSQL_COND_CALL(destroy)(C, F, L)
47
48#define mysql_cond_wait(C, M) mysql_cond_wait_with_src(C, M, __FILE__, __LINE__)
49#define mysql_cond_wait_with_src(C, M, F, L) MYSQL_COND_CALL(wait)(C, M, F, L)
50
51#define mysql_cond_timedwait(C, M, T) \
52 mysql_cond_timedwait_with_src(C, M, T, __FILE__, __LINE__)
53#define mysql_cond_timedwait_with_src(C, M, T, F, L) \
54 MYSQL_COND_CALL(timedwait)(C, M, T, F, L)
55
56#define mysql_cond_signal(C) mysql_cond_signal_with_src(C, __FILE__, __LINE__)
57#define mysql_cond_signal_with_src(C, F, L) MYSQL_COND_CALL(signal)(C, F, L)
58
59#define mysql_cond_broadcast(C) \
60 mysql_cond_broadcast_with_src(C, __FILE__, __LINE__)
61#define mysql_cond_broadcast_with_src(C, F, L) \
62 MYSQL_COND_CALL(broadcast)(C, F, L)
63
64#endif /* COMPONENTS_SERVICES_MYSQL_COND_H */
Specifies macros to define Components.
#define REQUIRES_MYSQL_COND_SERVICE_PLACEHOLDER
Definition: mysql_cond.h:32
ABI for instrumented mutexes.