MEDIUM: list: Separate "locked" list from regular list.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 8 Aug 2019 13:47:21 +0000 (15:47 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 23 Sep 2019 16:16:08 +0000 (18:16 +0200)
commit859dc80f947538f7f62bf7314f794d24f6a48e06
tree61d4cceec7e5e26d98c1b68fd127003816614340
parent6dd4ac890b5810b0f0fe81725fda05ad3d052849
MEDIUM: list: Separate "locked" list from regular list.

Instead of using the same type for regular linked lists and "autolocked"
linked lists, use a separate type, "struct mt_list", for the autolocked one,
and introduce a set of macros, similar to the LIST_* macros, with the
MT_ prefix.
When we use the same entry for both regular list and autolocked list, as
is done for the "list" field in struct connection, we know have to explicitely
cast it to struct mt_list when using MT_ macros.
18 files changed:
include/common/mini-clist.h
include/proto/connection.h
include/proto/listener.h
include/proto/server.h
include/proto/task.h
include/types/global.h
include/types/listener.h
include/types/proxy.h
include/types/server.h
include/types/task.h
src/backend.c
src/cfgparse.c
src/cli.c
src/haproxy.c
src/listener.c
src/proxy.c
src/server.c
src/task.c