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 /lib/librthread/rthread_sched.c | |
parent | f8598074c9df8821312f2c4a7cea9ba772625f82 (diff) |
syscall is actually sched_yield now, as millert suggested
Diffstat (limited to 'lib/librthread/rthread_sched.c')
-rw-r--r-- | lib/librthread/rthread_sched.c | 13 |
1 files changed, 3 insertions, 10 deletions
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(); } |