From 83053b39f33e6f18738564555a7467091288bc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 9 Jun 2017 14:39:49 +0200 Subject: [PATCH] Removing spinlock completely #977 --- include/proxysql_atomic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/proxysql_atomic.h b/include/proxysql_atomic.h index 0996d37477..6b056dc9ef 100644 --- a/include/proxysql_atomic.h +++ b/include/proxysql_atomic.h @@ -1,3 +1,7 @@ +#ifdef PROXYSQL_USE_SPINLOCK +// PROXYSQL_USE_SPINLOCK is NOT define +// spinlock have been removed in 1.4.1 due to issue #977 , to compile in ARM +// this file is kept for reference, and will be completely removed in future #ifndef PROXYSQL_ATOMIC #define PROXYSQL_ATOMIC /* @@ -75,3 +79,4 @@ static inline void spin_rdunlock(rwlock_t *l) { #endif /* PROXYSQL_ATOMIC */ +#endif // PROXYSQL_USE_SPINLOCK