test/mcslock: use compiler atomics for lcores sync
authorJoyce Kong <joyce.kong@arm.com>
Tue, 20 Jul 2021 03:51:21 +0000 (22:51 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 17:10:58 +0000 (19:10 +0200)
commit8d08f7c9aedb47186148da50348df22f20b80646
tree1c83bc1c2d6dbc0bc765403329da4507ada25f26
parentfb2a9bd26628a83ee39583284c2536f2183ec7fd
test/mcslock: use compiler atomics for lcores sync

Convert rte_atomic usages to compiler atomic built-ins for lcores
sync in mcslock testcases.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
app/test/test_mcslock.c