From e05c1f489492dcd4bca00356d9c62db36a447f34 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:52:41 +0800 Subject: [PATCH] feat update --- include/sled/lang/attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sled/lang/attributes.h b/include/sled/lang/attributes.h index 2702cf7..ca29caf 100644 --- a/include/sled/lang/attributes.h +++ b/include/sled/lang/attributes.h @@ -26,7 +26,7 @@ #define PT_GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x)) -#else +#else// defined(__clang__) #define EXCLUSIVE_TRYLOCK_FUNCTION(...) THREAD_ANNOTATION_ATTRIBUTE__(exclusive_trylock(__VA_ARGS__)) #define EXCLUSIVE_LOCK_FUNCTION(...) THREAD_ANNOTATION_ATTRIBUTE__(exclusive_lock(__VA_ARGS__))