[PATCH] pthread_fork Part 3

Christopher Faylor cgf@redhat.com
Fri Sep 20 08:45:00 GMT 2002

On Fri, Sep 20, 2002 at 10:50:55PM +1000, Robert Collins wrote:
>On Sat, 2002-08-17 at 06:55, Thomas Pfaff wrote:
>> Pthread key destructor handling revised. IMHO it does not make sense to
>> handle two lists with keys, one with all keys, one with its destructors.
>> The destructors are now part of the key class.
>I agree with the duplication of code. This is one area I'd really really
>really like to use templates. 
>Chris, Corinna, if we ever get the chance to use templates please tell
>me so! It makes code clarity and size so much better.

I actually used to use templates in environ.cc.  I think DJ yanked them
out because some version of g++ couldn't handle them.

AFAIK, use of templates won't cause any code bloat so I don't see any
reason to avoid them.


More information about the Cygwin-patches mailing list