Pthreads patches

Robert Collins robert.collins@syncretize.net
Wed Jun 12 04:22:00 GMT 2002



> -----Original Message-----
> From: cygwin-patches-owner@cygwin.com 
> [mailto:cygwin-patches-owner@cygwin.com] On Behalf Of Thomas Pfaff
> Sent: Wednesday, 12 June 2002 9:17 PM
> To: cygwin-patches@cygwin.com
> Subject: Re: Pthreads patches
> 
> 
> 
> Hi Rob,
> 
> i had a minor problem with your latest code:
> You decided to change the mutex pointer into an object. This 
> will break
> the verifyable_object_isvalid call in pthread::create.

I thought I might explain why. The usual benefit of an object pointer in
C++ is for optional objects, or for polymorphic objects. Neither applied
in this case, so a composed object is a lower overhead option.

Rob



More information about the Cygwin-patches mailing list