MEDIUM: threads/server: Add a lock per server and atomically update server vars
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 8 Jun 2017 12:04:45 +0000 (14:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:31 +0000 (13:58 +0100)
commit29f77e846bd9cad8b9984dc5304e6edcaa4f435d
treebdf913b2fec335824b369cd2893febf3b358eb17
parent40a007cf2a387bc2c4257840bafc54290297cbf9
MEDIUM: threads/server: Add a lock per server and atomically update server vars

The server's lock is use, among other things, to lock acces to the active
connection list of a server.
12 files changed:
include/common/hathreads.h
include/proto/server.h
include/proto/stream.h
include/types/server.h
src/backend.c
src/checks.c
src/haproxy.c
src/proto_http.c
src/queue.c
src/server.c
src/stats.c
src/stream.c