test/hash: use compiler atomics for sync
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Wed, 22 Sep 2021 21:52:05 +0000 (16:52 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Oct 2021 15:15:10 +0000 (17:15 +0200)
commitee8cee83fe3ddc855ac9fa67afb71f325435bffd
tree42a6ba174a744f349eb13bb053f970e0f3120105
parent4da013609683aaa6cf1c375c0a2a7dc768d9b865
test/hash: use compiler atomics for sync

Convert rte_atomic usages to compiler atomic built-ins
for stats sync.

Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
Tested-by: David Christensen <drc@linux.vnet.ibm.com>
app/test/test_hash_multiwriter.c
app/test/test_hash_readwrite.c