* 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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user