summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_yield.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-05-16 19:58:30 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-05-16 19:58:30 +0000
commitfd626336fd97bad05a86f02b646c66d2fe14d01a (patch)
treeb51a83e5c85ef7655ee05174c31348fd86fe4591 /lib/libpthread/thread/thr_yield.c
parent72a3951459cd8937c6b6f0b43804c39889c4ae30 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_yield.c')
-rw-r--r--lib/libpthread/thread/thr_yield.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_yield.c b/lib/libpthread/thread/thr_yield.c
index dfe72781215e..b41072fdd1f8 100644
--- a/lib/libpthread/thread/thr_yield.c
+++ b/lib/libpthread/thread/thr_yield.c
@@ -46,9 +46,7 @@ _sched_yield(void)
curthread->slice_usec = -1;
/* Schedule the next thread: */
- THR_LOCK_SWITCH(curthread);
_thr_sched_switch(curthread);
- THR_UNLOCK_SWITCH(curthread);
/* Always return no error. */
return(0);
}
@@ -63,7 +61,5 @@ _pthread_yield(void)
curthread->slice_usec = -1;
/* Schedule the next thread: */
- THR_LOCK_SWITCH(curthread);
_thr_sched_switch(curthread);
- THR_UNLOCK_SWITCH(curthread);
}