]> git.droids-corp.org - dpdk.git/commit
test/timer: use compiler atomic builtins for sync
authorJoyce Kong <joyce.kong@arm.com>
Wed, 17 Nov 2021 08:21:51 +0000 (08:21 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 17 Nov 2021 10:07:06 +0000 (11:07 +0100)
commit827aa9c6af63e75763b8ad80e2a57731ce23a531
tree0bd42ddad8f79d0663fd3d2aaa9312b371ca53b6
parente64f423b1217305ad00faf019cf13e69c69226b2
test/timer: use compiler atomic builtins for sync

Convert rte_atomic usages to compiler atomic
built-ins for lcore_state and collisions sync.

Also, move 'main_init_workers' outside of
'timer_stress2_main_loop' to guarantee lcore_state
initialized correctly before the threads launched.

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>
app/test/test_timer.c