]> git.proxmox.com Git - mirror_frr.git/commit - lib/seqlock.h
lib/seqlock: add timed-wait operation
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)
commit2a5e62359f737b233a8b06731ce60f915a754d72
tree35ce7d3ab51fc38fc1b2ba5f56075c2e17183b31
parent6046b690b53a5e1c14ccf261304f5aa1f53546ae
lib/seqlock: add timed-wait operation

seqlock_timedwait() puts an (absolute, CLOCK_MONOTONIC) deadline on how
long we wait.  The RCU code uses this for its watchdog implementation.

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