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  <[EMAIL PROTECTED]>

        * 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.

-- 
+++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

Attachment: init_main.patch
Description: plain/text

Reply via email to