This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: Pthreads patches
- From: "Robert Collins" <robert dot collins at syncretize dot net>
- To: "'Thomas Pfaff'" <tpfaff at gmx dot net>,<cygwin-patches at cygwin dot com>
- Date: Wed, 12 Jun 2002 21:22:22 +1000
- Subject: 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