test/ticketlock: use compiler atomics for lcores sync
authorJoyce Kong <joyce.kong@arm.com>
Tue, 20 Jul 2021 03:51:18 +0000 (22:51 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 17:04:34 +0000 (19:04 +0200)
commitf11bdb206a55c1d604455b64f636bca034680e85
tree374be3f5c8ec6a8675f53bf4740fa7e974091ea8
parent23ce9e0a193636e2f5ec9b386ddd5307c17e9723
test/ticketlock: use compiler atomics for lcores sync

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

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