* select.cc (thread_pipe): Raise sleep time only every 8th iteration.

(thread_mailslot): Ditto.
This commit is contained in:
Corinna Vinschen 2006-04-24 15:16:45 +00:00
parent 27154d380a
commit b4c53a7c00
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-04-24 Corinna Vinschen <corinna@vinschen.de>
* select.cc (thread_pipe): Raise sleep time only every 8th iteration.
(thread_mailslot): Ditto.
2006-04-23 Corinna Vinschen <corinna@vinschen.de>
Christopher Faylor <cgf@timesys.com>

View File

@ -646,8 +646,8 @@ thread_pipe (void *arg)
}
if (gotone)
break;
Sleep (sleep_time >> 1);
if (sleep_time < 20)
Sleep (sleep_time >> 3);
if (sleep_time < 80)
++sleep_time;
}
out:
@ -1661,8 +1661,8 @@ thread_mailslot (void *arg)
}
if (gotone)
break;
Sleep (sleep_time >> 1);
if (sleep_time < 20)
Sleep (sleep_time >> 3);
if (sleep_time < 80)
++sleep_time;
}
out: