commit | e951c3435c760142612461dc759b6fbb2ec69c21 | [log] [tgz] |
---|---|---|
author | Aurelien DARRAGON <adarragon@haproxy.com> | Thu Oct 20 17:37:51 2022 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Oct 21 16:26:27 2022 +0200 |
tree | 7d879516a450046496adde3e4a2a7ccafc84f45f | |
parent | 18c284c1261764bf9de9153bbe1ee4e53c6c836d [diff] |
MINOR: list: adding MT_LIST_APPEND_LOCKED macro adding a new mt macro: MT_LIST_APPEND_LOCKED. This macro may be used to append an item to an existing list, like MT_LIST_APPEND. But here the item will be forced into locked/busy state prior to appending, so that it is already referenced in the list while still preventing concurrent accesses until we decide to unlock it. The macro returns a struct mt_list "np", that is needed at unlock time using regular MT_LIST_UNLOCK_ELT macro.