]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: list: add new macro LIST_INLIST_ATOMIC()
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Oct 2021 12:06:01 +0000 (14:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Oct 2021 13:28:24 +0000 (15:28 +0200)
commitc79f01497208e3cea20d4d563dee158e0e6f4674
treeaf78e0753cb8109b35c2c1e0ae246fc6c7e5f7a8
parent9628c422846c29d1ec479d326adf937c5dab63cc
MINOR: list: add new macro LIST_INLIST_ATOMIC()

This macro is similar to LIST_INLIST() except that it is guaranteed to
perform the test atomically, so that even if LIST_INLIST() is intrumented
with debugging code to perform extra consistency checks, it will not fail
when used in the context of barriers and atomic ops.
include/haproxy/list.h