From e4ce347428a0d459c7561f7bb3e180f351c11a4f Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 14 七月 2020 10:38:18 +0800
Subject: [PATCH] update
---
include/usgcommon/usg_typedef.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/include/usgcommon/usg_typedef.h b/include/usgcommon/usg_typedef.h
index 55796e1..a4c11b2 100644
--- a/include/usgcommon/usg_typedef.h
+++ b/include/usgcommon/usg_typedef.h
@@ -5,10 +5,6 @@
extern "C" {
#endif
-/// @brief Compare And Swap
-/// If the current value of *a_ptr is a_oldVal, then write a_newVal into *a_ptr
-/// @return true if the comparison is successful and a_newVal was written
-#define CAS(a_ptr, a_oldVal, a_newVal) __sync_bool_compare_and_swap(a_ptr, a_oldVal, a_newVal)
#if ! defined(__FreeBSD__) && ! defined(__OpenBSD__) && \
! defined(__sgi) && ! defined(__APPLE__)
--
Gitblit v1.8.0