diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-02-16 02:37:41 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-02-16 02:37:41 +0100 |
commit | 23e63540f2d3ff6da230d1a29aecf33b49d2874d (patch) | |
tree | 46ce92001537d37dd9ef7a164880db1a97aa12b5 /source/kit/shared_mutex.h | |
parent | 34df687daf49b29e0f2b4d7e0be3bd69df1c40c9 (diff) | |
download | saw-23e63540f2d3ff6da230d1a29aecf33b49d2874d.zip |
Update kit
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 |