projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c28328
)
MEDIUM: activity: Use the new _HA_ATOMIC_* macros.
author
Olivier Houchard
<ohouchard@haproxy.com>
Fri, 8 Mar 2019 17:48:58 +0000
(18:48 +0100)
committer
Olivier 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
patch
|
blob
|
history
diff --git
a/src/activity.c
b/src/activity.c
index
4a807c8
..
b5fac88
100644
(file)
--- a/
src/activity.c
+++ b/
src/activity.c
@@
-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";