From cab0f0b418e8974053022d963ca680ef10a5e2fb Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 8 Mar 2019 18:55:31 +0100 Subject: [PATCH] MEDIUM: time: Use the new _HA_ATOMIC_* macros. Use the new _HA_ATOMIC_* macros and add barriers where needed. --- src/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time.c b/src/time.c index 8f9b94341..cd042dee6 100644 --- a/src/time.c +++ b/src/time.c @@ -230,7 +230,7 @@ REGPRM2 void tv_update_date(int max_wait, int interrupted) new_now = (((unsigned long long)tmp_adj.tv_sec) << 32) + (unsigned int)tmp_adj.tv_usec; /* let's try to update the global or loop again */ - } while (!HA_ATOMIC_CAS(&global_now, &old_now, new_now)); + } while (!_HA_ATOMIC_CAS(&global_now, &old_now, new_now)); adjusted = tmp_adj;