From 23e63540f2d3ff6da230d1a29aecf33b49d2874d Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 16 Feb 2024 02:37:41 +0100 Subject: Update kit --- source/kit/shared_mutex.h | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) (limited to 'source/kit/shared_mutex.h') diff --git a/source/kit/shared_mutex.h b/source/kit/shared_mutex.h index 3626939..d202090 100644 --- a/source/kit/shared_mutex.h +++ b/source/kit/shared_mutex.h @@ -153,29 +153,24 @@ static void kit_unique_unlock(kit_shared_mutex_t *m) { # pragma GCC diagnostic pop #endif -#ifndef KIT_DISABLE_SHORT_NAMES -# define shared_mutex_t kit_shared_mutex_t -# define shared_mutex_init kit_shared_mutex_init -# define shared_try_lock kit_shared_try_lock -# define shared_lock kit_shared_lock -# define shared_unlock kit_shared_unlock -# define unique_try_lock kit_unique_try_lock -# define unique_lock kit_unique_lock -# define unique_unlock kit_unique_unlock -#endif - #ifdef __cplusplus } #endif -#ifndef KIT_DISABLE_SHORT_NAMES -# define shared_mutex_init kit_shared_mutex_init -# define shared_try_lock kit_shared_try_lock -# define shared_lock kit_shared_lock -# define shared_unlock kit_shared_unlock -# define unique_try_lock kit_unique_try_lock -# define unique_lock kit_unique_lock -# define unique_unlock kit_unique_unlock -#endif +#define shared_mutex_t kit_shared_mutex_t +#define shared_mutex_init kit_shared_mutex_init +#define shared_try_lock kit_shared_try_lock +#define shared_lock kit_shared_lock +#define shared_unlock kit_shared_unlock +#define unique_try_lock kit_unique_try_lock +#define unique_lock kit_unique_lock +#define unique_unlock kit_unique_unlock +#define shared_mutex_init kit_shared_mutex_init +#define shared_try_lock kit_shared_try_lock +#define shared_lock kit_shared_lock +#define shared_unlock kit_shared_unlock +#define unique_try_lock kit_unique_try_lock +#define unique_lock kit_unique_lock +#define unique_unlock kit_unique_unlock #endif -- cgit v1.2.3