MINOR: list: Add MT_LIST_DEL_SAFE_NOINIT() and MT_LIST_ADDQ_NOCHECK()
authorOlivier Houchard <cognet@ci0.org>
Mon, 29 Jun 2020 18:14:28 +0000 (20:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 15:04:00 +0000 (17:04 +0200)
commitbbee1f7e78a5abe5676acb6c33f71e1f3f651119
tree88df6f1fd4d7376f3b1df1f31769f511ac504d0d
parent88d18f81aed369da4ca2f1334a2c06d2c6f66f35
MINOR: list: Add MT_LIST_DEL_SAFE_NOINIT() and MT_LIST_ADDQ_NOCHECK()

Add two new macros, MT_LIST_DEL_SAFE_NOINIT makes sure we remove the
element from the list, without reinitializing its next and prev, and
MT_LIST_ADDQ_NOCHECK is similar to MT_LIST_ADDQ(), except it doesn't check
if the element is already in a list.
The goal is to be able to move an element from a list we're currently
parsing to another, keeping it locked in the meanwhile.
include/haproxy/list.h