OSDN Git Service

* thread.h (struct pthread_rwlock::RWLOCK_READER): Add counter n.
authorcorinna <corinna>
Tue, 20 Jan 2009 12:40:31 +0000 (12:40 +0000)
committercorinna <corinna>
Tue, 20 Jan 2009 12:40:31 +0000 (12:40 +0000)
commit9d133c8f97e9e2a96c642cbae82d43f1909c4f35
tree1969643542a2d85923bb5b68c090744cd504705d
parentcb9d8d50eb6bb62e55cfc439eab93ccecaa56833
* thread.h (struct pthread_rwlock::RWLOCK_READER): Add counter n.
* thread.cc (pthread_rwlock::rdlock): If a thread already owns a
read lock, just count the number of locks for it, per SUSv4.
(pthread_rwlock::tryrdlock): Ditto.
(pthread_rwlock::unlock): If a thread has more than one concurrent
read locks, just count down.
winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc
winsup/cygwin/thread.h