examples/performance-thread: fix build with clang 12.0.1
authorJerin Jacob <jerinj@marvell.com>
Mon, 16 Aug 2021 13:19:14 +0000 (18:49 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Aug 2021 11:40:23 +0000 (13:40 +0200)
commit5e184c4cc7ca5633aaebf15f73882b8456d13fd7
treeb72cacc2447c680c982ae1486b7fd13f975b3378
parentfdab8f2e17493192d555cd88cf28b06269174326
examples/performance-thread: fix build with clang 12.0.1

In clang 12.0.1 version, the use of pthread_yield() is deprecated,
use sched_yield() instead.

log:
    examples/performance-thread/pthread_shim/main.c:75:9: warning:
    'pthread_yield' is deprecated: pthread_yield is deprecated,
    use sched_yield instead [-Wdeprecated-declarations]

Bugzilla ID: 745
Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app")
Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Tested-by: Ali Alnubani <alialnu@nvidia.com>
examples/performance-thread/pthread_shim/main.c