(empth_yield): Remove sleep(). Delay not necessary.
This commit is contained in:
parent
66e30e2c8e
commit
ce11addeed
1 changed files with 0 additions and 1 deletions
|
@ -287,7 +287,6 @@ void
|
||||||
empth_yield(void)
|
empth_yield(void)
|
||||||
{
|
{
|
||||||
pthread_mutex_unlock(&mtx_ctxsw);
|
pthread_mutex_unlock(&mtx_ctxsw);
|
||||||
sleep(10); /* take a nap pthread_yield(); */
|
|
||||||
pthread_mutex_lock(&mtx_ctxsw);
|
pthread_mutex_lock(&mtx_ctxsw);
|
||||||
empth_restorectx();
|
empth_restorectx();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue