test/rwlock: use compiler atomics for lcores sync
authorJoyce Kong <joyce.kong@arm.com>
Tue, 20 Jul 2021 03:51:20 +0000 (22:51 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 17:08:43 +0000 (19:08 +0200)
commitfb2a9bd26628a83ee39583284c2536f2183ec7fd
tree7059efb9afffb967c0f1ea690d989928a5f94426
parentd2794d6719db49ede1370d1be2d56bd96d73c418
test/rwlock: use compiler atomics for lcores sync

Convert rte_atomic usages to compiler atomic built-ins for lcores
sync in rwlock 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_rwlock.c