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: [PATCH] thread self handling revised


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


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