]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/pthread_shim/main.c
examples/performance-thread: fix build with clang 12.0.1
[dpdk.git] / examples / performance-thread / pthread_shim / main.c
index 257de50692a9e73b01a1941e8e5d60eb374c2290..7ce6cfb0c8c0802a7fd5ddb449d7efd3eda5b611 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);