Commit 00751594 authored by Alan Coopersmith's avatar Alan Coopersmith Committed by Daniel Vetter

Use sched_yield instead of pthread_yield

Despite the name implying it's a standard part of the POSIX threads API,
pthread_yield is actually non-standard and less portable than sched_yield.
For instance, Solaris only has sched_yield, and not pthread_yield.
Since even the Linux man page suggests using sched_yield, just call that.
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <>
parent f73dddc7
......@@ -110,7 +110,7 @@ bo_copy (void *_arg)
for (n = 0; n < 1000; n++) {
memcpy (a, b, OBJECT_SIZE);
pthread_yield ();
sched_yield ();
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment