This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] thread self handling revised
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 9 Apr 2004 20:53:22 -0400
- Subject: Re: [PATCH] thread self handling revised
- References: <14630.1080813525@www21.gmx.net>
- Reply-to: cygwin-patches at cygwin dot com
On Thu, Apr 01, 2004 at 11:58:45AM +0200, Thomas Pfaff wrote:
>Rethinking the changes to pthread::init_mainthread i came to the conclusion
>that this stuff can be made simpler and cleaner.
>The changes to init_maintread are reverted, the thread self pointer for an
>unknown thread is now set in pthread::self.
>
>2004-04-01 Thomas Pfaff <tpfaff@gmx.net>
>
> * thread.h (pthread::init_mainthread): Remove parameter forked.
> (pthread::set_tls_self_pointer): New static function.
> * thread.cc (MTinterface::fixup_after_fork): Change call to
> pthread::init_mainthread.
> (pthread::init_mainthread): Remove parameter forked. Simplify
> thread self pointer handling.
> (pthread::self): Set thread self pointer to null_pthread if
> thread has not been initialized.
> (pthread::set_tls_self_pointer): New static function.
Applied. Sorry for the delay.
Thanks,
cgf