24#ifndef COMPONENTS_SERVICES_MYSQL_MUTEX_H
25#define COMPONENTS_SERVICES_MYSQL_MUTEX_H
30#define REQUIRES_MYSQL_MUTEX_SERVICE REQUIRES_SERVICE(mysql_mutex_v1)
31#define REQUIRES_MYSQL_MUTEX_SERVICE_PLACEHOLDER \
32 REQUIRES_SERVICE_PLACEHOLDER(mysql_mutex_v1)
36#define MYSQL_MUTEX_CALL(M) SERVICE_PLACEHOLDER(mysql_mutex_v1)->M
38#define mysql_mutex_register(P1, P2, P3) \
39 MYSQL_MUTEX_CALL(register_info)(P1, P2, P3)
41#define mysql_mutex_init(K, M, A) \
42 mysql_mutex_init_with_src(K, M, A, __FILE__, __LINE__)
43#define mysql_mutex_init_with_src(K, M, A, F, L) \
44 MYSQL_MUTEX_CALL(init)(K, M, A, F, L)
46#define mysql_mutex_destroy(M) \
47 mysql_mutex_destroy_with_src(M, __FILE__, __LINE__)
48#define mysql_mutex_destroy_with_src(M, F, L) MYSQL_MUTEX_CALL(destroy)(M, F, L)
50#define mysql_mutex_lock(M) mysql_mutex_lock_with_src(M, __FILE__, __LINE__)
51#define mysql_mutex_lock_with_src(M, F, L) MYSQL_MUTEX_CALL(lock)(M, F, L)
53#define mysql_mutex_trylock(M) \
54 mysql_mutex_trylock_with_src(M, __FILE__, __LINE__)
55#define mysql_mutex_trylock_with_src(M, F, L) MYSQL_MUTEX_CALL(trylock)(M, F, L)
57#define mysql_mutex_unlock(M) mysql_mutex_unlock_with_src(M, __FILE__, __LINE__)
58#define mysql_mutex_unlock_with_src(M, F, L) MYSQL_MUTEX_CALL(unlock)(M, F, L)
Specifies macros to define Components.
#define REQUIRES_MYSQL_MUTEX_SERVICE_PLACEHOLDER
Definition: mysql_mutex.h:31