[PATCH] thread self handling revised

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Sat Apr 10 00:53:00 GMT 2004


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



More information about the Cygwin-patches mailing list