OSDN Git Service

* thread.cc (pthread::create): Use thread mutex to control synchronization
authorcgf <cgf>
Tue, 13 Apr 2004 02:59:19 +0000 (02:59 +0000)
committercgf <cgf>
Tue, 13 Apr 2004 02:59:19 +0000 (02:59 +0000)
commita8d5da762106b5ecc39e061e8fd9292d3bb4bb05
tree8ff697ceb310c5548bd678c301ca83a20dd6a011
parent95b1a0abb7a314aa5be69fc67a85a75d6cc1d76f
* thread.cc (pthread::create): Use thread mutex to control synchronization
rather than creating a suspended thread.  Wait for "cancellation event" to
indicate that started thread has been properly initialized.
(pthread::thread_init_wrapper): Use set_tls_self_pointer() to set tid and
cygtls.  Signal with cancel_event when done.
winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc