diff options
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index a0412e1..1c7b7c6 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -555,6 +555,7 @@ public: struct RWLOCK_READER *next; pthread_t thread; unsigned long n; + RWLOCK_READER (): next (NULL), thread (pthread::self ()), n (0) {} } *readers; fast_mutex readers_mx; @@ -583,7 +584,7 @@ public: private: static List<pthread_rwlock> rwlocks; - void add_reader (struct RWLOCK_READER *rd); + RWLOCK_READER *add_reader (); void remove_reader (struct RWLOCK_READER *rd); struct RWLOCK_READER *lookup_reader (pthread_t thread); |