wfcqueue: allow defining CDS_WFCQ_WAIT_SLEEP to override `poll'
authorEric Wong <normalperson@yhbt.net>
Wed, 1 Aug 2018 18:54:45 +0000 (18:54 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 20 Aug 2018 19:47:20 +0000 (15:47 -0400)
commit34b11dd41c618c0dd29313ad37f05d6a5bca868a
treecf28296199c5653b64b25aa6806b71be28479f97
parentceb592f99ca8e4c92bd4fa3fe03d59ff975536bd
wfcqueue: allow defining CDS_WFCQ_WAIT_SLEEP to override `poll'

Users may want to use alternative sleeping behavior instead of
`poll'.  Make CDS_WFCQ_WAIT_SLEEP a macro which may be defined
before including wfcqueue.h.

This alternative behavior could include logging, performing
low-priority cleanup work, sleeping a shorter/longer interval
or any combination of that.

This will also make integration into glibc easier, as `poll'
linkage causes conformance test failures even when relegated
to an impossible code path:
https://public-inbox.org/libc-alpha/20180801092626.jrwyrojfye4avcis@whir/

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/static/wfcqueue.h
This page took 0.05119 seconds and 4 git commands to generate.