mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
MEDIUM: activity: Use the new _HA_ATOMIC_* macros.
Use the new _HA_ATOMIC_* macros and add barriers where needed.
This commit is contained in:
parent
4c28328572
commit
0823ca8b96
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user