]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: activity: Use the new _HA_ATOMIC_* macros.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 8 Mar 2019 17:48:58 +0000 (18:48 +0100)
committerOlivier Houchard <cognet@ci0.org>
Mon, 11 Mar 2019 16:02:37 +0000 (17:02 +0100)
Use the new _HA_ATOMIC_* macros and add barriers where needed.

src/activity.c

index 4a807c8e4a57830153f40863a80519d60aa1093b..b5fac884176ebc5ee12bbd79f6b4514aaf438718 100644 (file)
@@ -76,9 +76,9 @@ static int cli_parse_set_profiling(char **args, char *payload, struct appctx *ap
        }
 
        if (strcmp(args[3], "on") == 0)
-               HA_ATOMIC_OR(&profiling, bit);
+               _HA_ATOMIC_OR(&profiling, bit);
        else if (strcmp(args[3], "off") == 0)
-               HA_ATOMIC_AND(&profiling, ~bit);
+               _HA_ATOMIC_AND(&profiling, ~bit);
        else {
                appctx->ctx.cli.severity = LOG_ERR;
                appctx->ctx.cli.msg = "Expects either 'on' or 'off'.\n";