diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-03 18:17:56 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-03 18:17:56 +0000 |
commit | d9f5d8eda4808a18676489c7776c35780a6e1549 (patch) | |
tree | 6456ccaad8ae0080f3a95fc5a6cda1af5ffc9841 | |
parent | f8598074c9df8821312f2c4a7cea9ba772625f82 (diff) |
syscall is actually sched_yield now, as millert suggested
-rw-r--r-- | lib/librthread/rthread.c | 3 | ||||
-rw-r--r-- | lib/librthread/rthread_sched.c | 13 |
2 files changed, 4 insertions, 12 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c index 7e3cc057c7b..46b4e4f7634 100644 --- a/lib/librthread/rthread.c +++ b/lib/librthread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.1 2005/12/03 18:16:19 tedu Exp $ */ +/* $OpenBSD: rthread.c,v 1.2 2005/12/03 18:17:55 tedu Exp $ */ /* * Copyright (c) 2004 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -41,7 +41,6 @@ static int threads_ready; static pthread_t thread_list; static _spinlock_lock_t thread_lock; -int yield(); int getthrid(); void threxit(int); int rfork_thread(int, void *, void (*)(void *), void *); diff --git a/lib/librthread/rthread_sched.c b/lib/librthread/rthread_sched.c index 3ca3113c483..bf8a2c6b975 100644 --- a/lib/librthread/rthread_sched.c +++ b/lib/librthread/rthread_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_sched.c,v 1.1 2005/12/03 18:16:19 tedu Exp $ */ +/* $OpenBSD: rthread_sched.c,v 1.2 2005/12/03 18:17:55 tedu Exp $ */ /* * Copyright (c) 2004 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -36,7 +36,7 @@ #include "rthread.h" -int yield(void); +int sched_yield(void); int pthread_getschedparam(pthread_t thread, int *policy, @@ -125,12 +125,5 @@ pthread_setprio(pthread_t thread, int priority) void pthread_yield(void) { - yield(); -} -int -sched_yield(void) -{ - yield(); - - return (0); + sched_yield(); } |