[PATCH] thread self handling revised

Thomas Pfaff tpfaff@gmx.net
Thu Apr 1 09:58:00 GMT 2004

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): 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.

+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_main.patch
Type: plain/text
Size: 2630 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20040401/c361cbbb/attachment.bin>

More information about the Cygwin-patches mailing list