MySQL 8.0.31
Source Code Documentation
mysql_cond.h
Go to the documentation of this file.
1/* Copyright (c) 2008, 2022, 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 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 COMPONENTS_SERVICES_MYSQL_COND_H
24#define COMPONENTS_SERVICES_MYSQL_COND_H
25
29
30#define REQUIRES_MYSQL_COND_SERVICE REQUIRES_SERVICE(mysql_cond_v1)
31#define REQUIRES_MYSQL_COND_SERVICE_PLACEHOLDER \
32 REQUIRES_SERVICE_PLACEHOLDER(mysql_cond_v1)
33
35
36#define MYSQL_COND_CALL(M) mysql_service_mysql_cond_v1->M
37
38#define mysql_cond_register(P1, P2, P3) \
39 MYSQL_COND_CALL(register_info)(P1, P2, P3)
40
41#define mysql_cond_init(K, C) mysql_cond_init_with_src(K, C, __FILE__, __LINE__)
42#define mysql_cond_init_with_src(K, C, F, L) MYSQL_COND_CALL(init)(K, C, F, L)
43
44#define mysql_cond_destroy(C) mysql_cond_destroy_with_src(C, __FILE__, __LINE__)
45#define mysql_cond_destroy_with_src(C, F, L) MYSQL_COND_CALL(destroy)(C, F, L)
46
47#define mysql_cond_wait(C, M) mysql_cond_wait_with_src(C, M, __FILE__, __LINE__)
48#define mysql_cond_wait_with_src(C, M, F, L) MYSQL_COND_CALL(wait)(C, M, F, L)
49
50#define mysql_cond_timedwait(C, M, T) \
51 mysql_cond_timedwait_with_src(C, M, T, __FILE__, __LINE__)
52#define mysql_cond_timedwait_with_src(C, M, T, F, L) \
53 MYSQL_COND_CALL(timedwait)(C, M, T, F, L)
54
55#define mysql_cond_signal(C) mysql_cond_signal_with_src(C, __FILE__, __LINE__)
56#define mysql_cond_signal_with_src(C, F, L) MYSQL_COND_CALL(signal)(C, F, L)
57
58#define mysql_cond_broadcast(C) \
59 mysql_cond_broadcast_with_src(C, __FILE__, __LINE__)
60#define mysql_cond_broadcast_with_src(C, F, L) \
61 MYSQL_COND_CALL(broadcast)(C, F, L)
62
63#endif /* COMPONENTS_SERVICES_MYSQL_COND_H */
Specifies macros to define Components.
#define REQUIRES_MYSQL_COND_SERVICE_PLACEHOLDER
Definition: mysql_cond.h:31
ABI for instrumented mutexes.