This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Pthreads patches



> -----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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]