* thread.h (pthread::init_mainthread): Remove function parameter.

(MTinterface::Init): Ditto.
* thread.cc (MTinterface::Init): Remove function parameter.
Always initialize reent_key.
(pthread::init_mainthread): Remove function parameter.
(MTinterface::fixup_after_fork): Fix pthread::init_mainthread call.
* dcrt0.cc (dll_crt_0_1) Fix calls to MTinterface::Init and
pthread::init_mainthread.
Call pthread::init_mainthread only when not forked.
This commit is contained in:
Thomas Pfaff
2003-05-15 19:42:51 +00:00
parent ac5e8cb29c
commit c8fa3426af
4 changed files with 23 additions and 13 deletions

View File

@@ -401,7 +401,7 @@ public:
pthread ();
virtual ~pthread ();
static void init_mainthread (bool);
static void init_mainthread ();
static bool is_good_object(pthread_t const *);
static void atforkprepare();
static void atforkparent();
@@ -679,7 +679,7 @@ public:
pthread_key reent_key;
pthread_key thread_self_key;
void Init (int);
void Init ();
void fixup_before_fork (void);
void fixup_after_fork (void);