diff options
author | 2012-02-24 05:37:51 +0000 | |
---|---|---|
committer | 2012-02-24 05:37:51 +0000 | |
commit | 9e708523e31cca7a9f1cba00b70b73661c02fa79 (patch) | |
tree | 2c872abf5ef4b13671fd63c83a933b20448cf890 | |
parent | Document pthread_condattr_{init,destroy,setclock,getclock} (diff) | |
download | wireguard-openbsd-9e708523e31cca7a9f1cba00b70b73661c02fa79.tar.xz wireguard-openbsd-9e708523e31cca7a9f1cba00b70b73661c02fa79.zip |
sched_yield() is the standard name while pthread_yield() is the
non-standard alias, so prefer the former
-rw-r--r-- | lib/librthread/rthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c index a2784283319..057eaecfc53 100644 --- a/lib/librthread/rthread.c +++ b/lib/librthread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.54 2012/02/19 04:47:49 guenther Exp $ */ +/* $OpenBSD: rthread.c,v 1.55 2012/02/24 05:37:51 guenther Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -74,7 +74,7 @@ _spinlock(_spinlock_lock_t *lock) { while (_atomic_lock(lock)) - pthread_yield(); + sched_yield(); } void |