OSDN Git Service

* pthread.cc (pthread_mutex::_unlock): Avoid unlocking a mutex if the
authorcgf <cgf>
Fri, 7 Nov 2008 18:32:41 +0000 (18:32 +0000)
committercgf <cgf>
Fri, 7 Nov 2008 18:32:41 +0000 (18:32 +0000)
commitb57964c159f86bb170a76979eaebfdcc53ac64f2
tree3c48506b8358e773c3e5803bab746fc9e5a8fed1
parent2efb38cce24534c3b5c72494f3b067858a1e08e6
* pthread.cc (pthread_mutex::_unlock): Avoid unlocking a mutex if the
recursion_counter is already 0.
(pthread_mutex::_destroy): Don't consider a mutex busy if its recursion_counter
== 0.
(pthread_mutex::_fixup_after_fork): Set recursion_counter to 0 to flag that
we've just forked.  Don't reset the owner of this mutex since the forkee may
think it still owns the mutex.  Reinstate initialization of win32_obj_id.
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Initialize a variable to
bypass a C++ warning.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_floppy.cc
winsup/cygwin/thread.cc