* thread.h (pthread::init_mainthread): Add parameter forked. Set forked

default to false..
* thread.cc (MTinterface::fixup_after_fork): Call pthread::init_mainthread with
forked = true.
(pthread::init_mainthread): Add parameter forked.  Do not change thread self
pointer when forked.
This commit is contained in:
Christopher Faylor
2004-03-30 21:27:50 +00:00
parent cacc0d4421
commit c83bdbf65e
3 changed files with 20 additions and 6 deletions

View File

@@ -373,7 +373,7 @@ public:
pthread ();
virtual ~pthread ();
static void init_mainthread ();
static void init_mainthread (const bool forked = false);
static bool is_good_object(pthread_t const *);
static void atforkprepare();
static void atforkparent();