OSDN Git Service

2002-06-12 Thomas Pfaff <tpfaff@gmx.net>
authorrbcollins <rbcollins>
Sun, 23 Jun 2002 07:36:20 +0000 (07:36 +0000)
committerrbcollins <rbcollins>
Sun, 23 Jun 2002 07:36:20 +0000 (07:36 +0000)
commitc78f2e8e988d94a532fec6f7a508e4450ae973c9
treed49f277fb014982d6b6d3acaf7fc788597b247af
parent3653dbd1c614e7c5e3be40567126a1e42be9c809
2002-06-12  Thomas Pfaff  <tpfaff@gmx.net>

* thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to
cleanup_stack.
* thread.cc (pthread::pthread): Ditto.
(pthread::create): Fixed mutex verification.
(pthread::push_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
Mutex calls removed, used InterlockedExchangePointer instead.
(pthread::pop_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
(pthread::pop_all_cleanup_handlers): Ditto.
(__pthread_once): Check state first and return if already done.
(__pthread_join): DEADLOCK test reverted to __pthread_equal
call.
(__pthread_detach): Unlock mutex before deletion.
winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc
winsup/cygwin/thread.h