examples/performance-thread: use compiler atomics for sync
authorJoyce Kong <joyce.kong@arm.com>
Wed, 13 Oct 2021 18:54:03 +0000 (13:54 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Oct 2021 15:15:57 +0000 (17:15 +0200)
commitda126627de7bd7318012e7673e8f8e282f304848
treecf34539c78e6837770b7ab3b42e733d21f11cecc
parent6be26e31773b7c76d8076012574c226b15096824
examples/performance-thread: use compiler atomics for sync

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

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
examples/performance-thread/common/lthread.c
examples/performance-thread/common/lthread_diag.h
examples/performance-thread/common/lthread_int.h
examples/performance-thread/common/lthread_mutex.c
examples/performance-thread/common/lthread_mutex.h
examples/performance-thread/common/lthread_sched.c
examples/performance-thread/common/lthread_tls.c
examples/performance-thread/l3fwd-thread/main.c