This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Recent change to init.cc for thread detach looks wrong?
- From: Thomas Pfaff <tpfaff at gmx dot net>
- To: Robert Collins <rbcollins at cygwin dot com>
- Cc: cygwin-developers at cygwin dot com
- Date: Fri, 20 Sep 2002 09:42:09 +0200 (Westeuropäische Sommerzeit)
- Subject: Re: Recent change to init.cc for thread detach looks wrong?
On Fri, 20 Sep 2002, Robert Collins wrote:
> On Fri, 2002-09-20 at 15:32, Christopher Faylor wrote:
> > Robert,
> > Your recent change:
> > 2002-09-11 Robert Collins <rbtcollins@hotmail.com>
> >
> > * init.cc (dll_entry): On thread detach, if the thread hasn't
> > exit()ed, do so.
> >
> > doesn't look right. The code invokes pthread::exit which can block
> > waiting on a mutex, it seems.
>
> Ok, will correct this weekend.
>
You may have a look at my pthread patch part 4 that shows how i
have implemented cleanup after thread termination.
Thomas