stack: add C11 atomic implementation
authorGage Eads <gage.eads@intel.com>
Wed, 3 Apr 2019 23:20:18 +0000 (18:20 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 20:06:16 +0000 (22:06 +0200)
commit7e6e609939a8d76bc5c0804d7cab91512dd607e4
tree3124b2f719bc5c59903fa24b292ebedc81eebf60
parent3340202f5954a4fbba62332c4aad29af67701188
stack: add C11 atomic implementation

This commit adds an implementation of the lock-free stack push, pop, and
length functions that use __atomic builtins, for systems that benefit from
the finer-grained memory ordering control.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
lib/librte_stack/Makefile
lib/librte_stack/meson.build
lib/librte_stack/rte_stack_lf.h
lib/librte_stack/rte_stack_lf_c11.h [new file with mode: 0644]