diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-12-16 15:59:32 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-12-16 15:59:32 +0000 |
commit | c204143e3a605783e2888e58b11157aa6846e5db (patch) | |
tree | d09300480e21303d08549bcdeb92ca35bed0097f | |
parent | b5ef642ee8bd4ff32bb14fb2c3759b542d41f9fe (diff) | |
download | ATCD-c204143e3a605783e2888e58b11157aa6846e5db.tar.gz |
ChangeLogTag: Thu Dec 16 15:59:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | ace/OS_NS_Thread.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ace/OS_NS_Thread.h b/ace/OS_NS_Thread.h index d65bdc22bf3..08c58e10419 100644 --- a/ace/OS_NS_Thread.h +++ b/ace/OS_NS_Thread.h @@ -487,30 +487,30 @@ struct ACE_Export ACE_rwlock_t public: //protected: + /// Serialize access to internal state. ACE_mutex_t lock_; - // Serialize access to internal state. + /// Reader threads waiting to acquire the lock. ACE_cond_t waiting_readers_; - // Reader threads waiting to acquire the lock. + /// Number of waiting readers. int num_waiting_readers_; - // Number of waiting readers. + /// Writer threads waiting to acquire the lock. ACE_cond_t waiting_writers_; - // Writer threads waiting to acquire the lock. + /// Number of waiting writers. int num_waiting_writers_; - // Number of waiting writers. + /// Value is -1 if writer has the lock, else this keeps track of the + /// number of readers holding the lock. int ref_count_; - // Value is -1 if writer has the lock, else this keeps track of the - // number of readers holding the lock. + /// Indicate that a reader is trying to upgrade int important_writer_; - // indicate that a reader is trying to upgrade + /// Condition for the upgrading reader ACE_cond_t waiting_important_writer_; - // condition for the upgrading reader }; # elif defined (ACE_HAS_PTHREADS_UNIX98_EXT) typedef pthread_rwlock_t ACE_rwlock_t; |