OSDN Git Service

* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.
authortpfaff <tpfaff>
Tue, 24 Jun 2003 20:14:00 +0000 (20:14 +0000)
committertpfaff <tpfaff>
Tue, 24 Jun 2003 20:14:00 +0000 (20:14 +0000)
commit54a25ebf655786d1df47ed664364bce5396859c0
treeecb516c770c8f864ccc393447e911e7bca3fe556
parentaf3261cf8cfdb7a9816f18f9116807df80387a27
* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.
(pthread::threads): Instantiate.
(pthread::pthread): Initialize running and suspendend.
Initialize next with NULL.
Add thread to thread list if it is not the null_pthread.
(pthread::~pthread): Remove thread from thread list if it is not the null_pthread.
(pthread::postcreate): Set running flag.
(pthread::exit): Reset running flag.
(pthread::cancel): Try to cancel thread only if still running.
(pthread::_fixup_after_fork): Implement.
(pthread::detach): Check if thread is still running before detach.
* thread.h (pthread::running): New member.
(pthread::next): Ditto.
(pthread::fixup_after_fork): New static method.
(pthread::threads): New static method.
(pthread::_fixup_after_fork): New method.
winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc
winsup/cygwin/thread.h