CLEANUP: atomic: add an explicit _FETCH variant for add/sub/and/or
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Apr 2021 09:44:07 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Apr 2021 16:18:37 +0000 (18:18 +0200)
commit1db427399c995a474c531a85e648af18033682b2
tree2b2848f263a30a852afa263cf645593bfe73cb29
parent6756d95a8ec2ae15d8070ed4e0e1d66a778c6d7a
CLEANUP: atomic: add an explicit _FETCH variant for add/sub/and/or

Currently our atomic ops return a value but it's never known whether
the fetch is done before or after the operation, which causes some
confusion each time the value is desired. Let's create an explicit
variant of these operations suffixed with _FETCH to explicitly mention
that the fetch occurs after the operation, and make use of it at the
few call places.
14 files changed:
include/haproxy/atomic.h
include/haproxy/fd.h
include/haproxy/freq_ctr.h
include/haproxy/pattern.h
include/haproxy/server.h
include/haproxy/task.h
src/backend.c
src/dict.c
src/fd.c
src/haproxy.c
src/proxy.c
src/queue.c
src/ssl_sock.c
src/task.c