mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MEDIUM: applets: Use the new _HA_ATOMIC_* macros.
Use the new _HA_ATOMIC_* macros and add barriers where needed.
This commit is contained in:
parent
d2b5d16187
commit
a2735340fb
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ static inline struct appctx *appctx_new(struct applet *applet, unsigned long thr
|
|||
LIST_INIT(&appctx->buffer_wait.list);
|
||||
appctx->buffer_wait.target = appctx;
|
||||
appctx->buffer_wait.wakeup_cb = appctx_buf_available;
|
||||
HA_ATOMIC_ADD(&nb_applets, 1);
|
||||
_HA_ATOMIC_ADD(&nb_applets, 1);
|
||||
}
|
||||
return appctx;
|
||||
}
|
||||
|
|
@ -95,7 +95,7 @@ static inline void __appctx_free(struct appctx *appctx)
|
|||
}
|
||||
|
||||
pool_free(pool_head_connection, appctx);
|
||||
HA_ATOMIC_SUB(&nb_applets, 1);
|
||||
_HA_ATOMIC_SUB(&nb_applets, 1);
|
||||
}
|
||||
|
||||
static inline void appctx_free(struct appctx *appctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue