From: corinna Date: Mon, 24 Apr 2006 15:16:42 +0000 (+0000) Subject: * select.cc (thread_pipe): Raise sleep time only every 8th iteration. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=77ca0f30218324b1fba464a6807ddbf4184404c9;p=pf3gnuchains%2Fpf3gnuchains3x.git * select.cc (thread_pipe): Raise sleep time only every 8th iteration. (thread_mailslot): Ditto. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f682655629..a04d0b4c7d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-04-24 Corinna Vinschen + + * select.cc (thread_pipe): Raise sleep time only every 8th iteration. + (thread_mailslot): Ditto. + 2006-04-23 Corinna Vinschen Christopher Faylor diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 970e529f6e..9443ef28a7 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -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: