test wfcqueue: add tests for queue state return value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 18 Nov 2012 15:35:35 +0000 (10:35 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Dec 2012 10:48:00 +0000 (05:48 -0500)
commitcf9451dc7ee26459a84772338cc1470903657407
tree9f4bfceb2dcd1136bb29768e77816be8a7f194ec
parent23773356a9fd12bf12627df437d0c7bd20e8ef01
test wfcqueue: add tests for queue state return value

with e.g. ./test_urcu_wfcq 2 2 10 -w

we can confirm that we see as many "enqueue to empty queue" as we see
"splice from non-empty queue", which confirms that the queue state
returned by enqueue is indeed sampled atomically with enqueue.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
CC: Lai Jiangshan <laijs@cn.fujitsu.com>
tests/test_urcu_wfcq.c
This page took 0.02942 seconds and 4 git commands to generate.