MINOR: queue: implement pendconn queue locking functions
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 06:03:14 +0000 (08:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 15:32:51 +0000 (17:32 +0200)
commit7c6f8a2b0d798cf5fadd93325282446452494216
tree378fa3cb0442f1c0f299016b053aa49d0d5df652
parent88930dd364cf6f77687f8f57618d2e5810c4d29f
MINOR: queue: implement pendconn queue locking functions

The new pendconn_queue_lock() and pendconn_queue_unlock() functions are
made to make it more convenient to lock or unlock the pendconn queue
either at the proxy or the server depending on pendconn->srv. This way
it is possible to remove the open-coding of these locks at various places.
These ones have been used in pendconn_unlink() and pendconn_add(), thus
significantly simplifying the logic there.
src/queue.c