From: Olivier Houchard Date: Fri, 8 Mar 2019 17:55:31 +0000 (+0100) Subject: MEDIUM: time: Use the new _HA_ATOMIC_* macros. X-Git-Tag: v2.0-dev2~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cab0f0b418e8974053022d963ca680ef10a5e2fb;p=thirdparty%2Fhaproxy.git MEDIUM: time: Use the new _HA_ATOMIC_* macros. Use the new _HA_ATOMIC_* macros and add barriers where needed. --- diff --git a/src/time.c b/src/time.c index 8f9b943413..cd042dee62 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;