summaryrefslogtreecommitdiff
path: root/ace/OS_NS_Thread.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-12-16 15:59:32 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-12-16 15:59:32 +0000
commit5e20a5dd1ed2a68bd117b308fa1625e67c5c0e0a (patch)
treed09300480e21303d08549bcdeb92ca35bed0097f /ace/OS_NS_Thread.h
parentbfdf4451db6bc45e4a6f2ea4d7a55e832b1509cd (diff)
downloadATCD-5e20a5dd1ed2a68bd117b308fa1625e67c5c0e0a.tar.gz
ChangeLogTag: Thu Dec 16 15:59:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/OS_NS_Thread.h')
-rw-r--r--ace/OS_NS_Thread.h18
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;