delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/03/08:23:42

From: andyp AT parallax DOT co DOT uk (Andy Piper)
Subject: Re: Thread created for select call!
3 Aug 1998 08:23:42 -0700 :
Message-ID: <3.0.3.32.19980803154446.00f4beb0.cygnus.cygwin32.developers@exchange.parallax.co.uk>
References: <19980803104326 DOT I23956 AT cygnus DOT com>
Mime-Version: 1.0
To: Christopher Faylor <cgf AT cygnus DOT com>, cygwin32-developers AT cygnus DOT com

At 10:43 03/08/98 -0400, Christopher Faylor wrote:
>I've rewritten select from scratch recently, so all of those mallocs/frees
>are gone.  Now there are new ones, but hopefully there are fewer.

Does it still include sergey's /dev/windows stuff? I hope so.

>It still uses thread destruction as a method for determining when a handle
>has become "signalled", but it would be easy to change this behavior.  I
>wrote select with that possibility in mind, in fact.
>
>This version stands a chance of being in the next public net release.  If
>there is a great hue and cry, I'll change it to use events as signallers
>and try to keep the thread around if possible.  The bookkeeping for doing
>this kind of thing gets hairy when you have to think about using select
>from multiple threads, however.
>
>>>You may be seeing a handle leak, however.  I forgot to close the thread
>>>handles after they started.  If you have the sources, the fix is simple.
>>>Just add CloseHandles to the appropriate cleanup_* routines in select.cc.
>>
>>Yes I have seen this also:). XEmacs consumes about 20,000 handles after a
>>couple of hours.
>
>-- 
>cgf AT cygnus DOT com             "Everything has a boolean value, if you stand
>http://www.cygnus.com/      far enough away from it."  -- Galena Alyson
Canada
>
---------------------------------------------------------------------------
" .sigs are like your face - rarely seen by you and uglier than you think"
Dr Andy Piper, Technical Architect, Parallax Solutions Ltd
mail: andyp AT parallax DOT co DOT uk web: www.parallax.co.uk/~andyp

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019