Switch atomic test and set API from __sync to __atomic builtin 29/19929/3
authorSirshak Das <[email protected]>
Tue, 28 May 2019 13:44:46 +0000 (08:44 -0500)
committerDamjan Marion <[email protected]>
Wed, 5 Jun 2019 13:48:53 +0000 (13:48 +0000)
commit3bb6540ab531f5474217f5f1f7cb7b8dce1d4e57
treef2fd75b2e78990a0f079d7f700a9ac5d597b72bd
parent607a23a1753ee8dc7e9150f09bb376553ed62639
Switch atomic test and set API from __sync to __atomic builtin

__sync_test_and_set uses full memory barriers for AArch64,
__atomic_exchange(ACQUIRE) would use load acquire.

Change-Id: Ifdf2481db3b9dde6c5842d75671402862adb6d81
Signed-off-by: Sirshak Das <[email protected]>
Reviewed-by: Lijian Zhang <[email protected]>
Reviewed-by: Honnappa Nagarahalli <[email protected]>
src/vppinfra/atomics.h