From: Eric Wong Date: Wed, 1 Aug 2018 18:54:45 +0000 (+0000) Subject: wfcqueue: allow defining CDS_WFCQ_WAIT_SLEEP to override `poll' X-Git-Tag: v0.11.0~40 X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=34b11dd41c618c0dd29313ad37f05d6a5bca868a;hp=34b11dd41c618c0dd29313ad37f05d6a5bca868a 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 Signed-off-by: Mathieu Desnoyers ---