summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/librthread/rthread.c4
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