]> git.puffer.fish Git - mirror/frr.git/commit
lib/seqlock: avoid syscalls in no-waiter cases
authorDavid Lamparter <equinox@diac24.net>
Wed, 19 Jun 2019 10:52:38 +0000 (12:52 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 31 Jul 2019 01:33:41 +0000 (03:33 +0200)
commit6046b690b53a5e1c14ccf261304f5aa1f53546ae
tree28058a3631b17f86492bb7d32c9aa8fd697b91a0
parent5e4f10b1e00ad63ccec5bb91b0f0b18141265231
lib/seqlock: avoid syscalls in no-waiter cases

When we have no contention on the seqlock, we shouldn't incur the cost
of syscalls.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/seqlock.c
lib/seqlock.h
tests/lib/test_atomlist.c
tests/lib/test_seqlock.c