examples/performance-thread: fix build with clang 12.0.1
[dpdk.git] / examples / performance-thread / pthread_shim / main.c
index 257de50..7ce6cfb 100644 (file)
@@ -72,7 +72,7 @@ void *helloworld_pthread(void *arg)
        print_count++;
 
        /* yield thread to give opportunity for lock contention */
-       pthread_yield();
+       sched_yield();
 
        /* retrieve arg from TLS */
        uint64_t thread_no = (uint64_t) pthread_getspecific(key);