diff options
Diffstat (limited to 'source/kit/shared_mutex.h')
-rw-r--r-- | source/kit/shared_mutex.h | 35 |
1 files changed, 15 insertions, 20 deletions
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 |