diff options
author | Christopher Faylor <me@cgf.cx> | 2004-04-10 00:53:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-04-10 00:53:25 +0000 |
commit | 56a188d1f3c3fb3d38c380f0052c16c5ee046c9b (patch) | |
tree | af6abfca253634243d80ef0a4e5be86e4c0193ed /winsup/cygwin/thread.h | |
parent | 60210cc795bcea2e34ed668cc5bccff35ba43246 (diff) | |
download | cygnal-56a188d1f3c3fb3d38c380f0052c16c5ee046c9b.tar.gz cygnal-56a188d1f3c3fb3d38c380f0052c16c5ee046c9b.tar.bz2 cygnal-56a188d1f3c3fb3d38c380f0052c16c5ee046c9b.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index ac08cdfde..b560f73dd 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -373,7 +373,7 @@ public: pthread (); virtual ~pthread (); - static void init_mainthread (const bool forked = false); + static void init_mainthread (); static bool is_good_object(pthread_t const *); static void atforkprepare(); static void atforkparent(); @@ -447,9 +447,9 @@ private: void pop_all_cleanup_handlers (void); void precreate (pthread_attr *); void postcreate (); - void set_tls_self_pointer (); bool create_cancel_event (); static pthread *get_tls_self_pointer (); + static void set_tls_self_pointer (pthread *); void cancel_self (); DWORD get_thread_id (); }; |