]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Add HA_RWLOCK_TRYRDTOWR()
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 26 Mar 2025 12:11:30 +0000 (12:11 +0000)
committerOlivier Houchard <cognet@ci0.org>
Tue, 1 Apr 2025 16:05:30 +0000 (18:05 +0200)
commitba521a1d883b4f996e2bda3b773521be8a5d8c90
tree0105a134dadf1048930719f0e0824542d86cad17
parent2a9436f96bf1c90983173561059c52f7c245df3e
MINOR: threads: Add HA_RWLOCK_TRYRDTOWR()

Add HA_RWLOCK_TRYRDTOWR(), that tries to upgrade a lock
from reader to writer, and fails if any seeker or writer already
holds it.
include/haproxy/thread.h
src/thread.c