examples/multi_process: use compiler atomics for sync
authorJoyce Kong <joyce.kong@arm.com>
Wed, 13 Oct 2021 18:54:01 +0000 (13:54 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Oct 2021 15:15:57 +0000 (17:15 +0200)
commit9b882c5b87872b6c00c7bb2d4bba7191be8648fa
tree580a3b89e9d0987e96c3354c9d204852e45bdb93
parent5bd3c386b276482e423108676b0c3b12b4cfb2e6
examples/multi_process: use compiler atomics for sync

Convert rte_atomic32_test_and_set usage to compiler atomic
CAS operation for display_stats sync.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
examples/multi_process/client_server_mp/mp_server/main.c