diff options
Diffstat (limited to 'lib/libpthread/thread/thr_yield.c')
-rw-r--r-- | lib/libpthread/thread/thr_yield.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_yield.c b/lib/libpthread/thread/thr_yield.c index dfe7278..b41072f 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); } |