numam-dpdk/lib/librte_ring
Cunming Liang 4e01799aea ring: add optional yield to avoid spin forever
Add a sched_yield() syscall if the thread spins for too long,
waiting other thread to finish its operations on the ring.
That gives pre-empted thread a chance to proceed and finish
with ring enqueue/dequeue operation.
The purpose is to reduce contention on the ring.
By ring_perf_test, it doesn't shows additional perf penalty.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-02-24 20:23:07 +01:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_ring_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_ring.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
rte_ring.h ring: add optional yield to avoid spin forever 2015-02-24 20:23:07 +01:00