commit | bbee1f7e78a5abe5676acb6c33f71e1f3f651119 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Mon Jun 29 20:14:28 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jul 01 17:04:00 2020 +0200 |
tree | 88df6f1fd4d7376f3b1df1f31769f511ac504d0d | |
parent | 88d18f81aed369da4ca2f1334a2c06d2c6f66f35 [diff] |
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.