MEDIUM: activity: Use the new _HA_ATOMIC_* macros.

Use the new _HA_ATOMIC_* macros and add barriers where needed.
This commit is contained in:
Olivier Houchard 2019-03-08 18:48:58 +01:00 committed by Olivier Houchard
parent 4c28328572
commit 0823ca8b96

View 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";