From c8fa3426af407099b0b55b6113f152975794d5fa Mon Sep 17 00:00:00 2001 From: Thomas Pfaff Date: Thu, 15 May 2003 19:42:51 +0000 Subject: * 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. --- winsup/cygwin/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index e162b32a0..55d94157b 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -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); -- cgit v1.2.3