diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-20 04:48:27 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-20 04:48:27 +0000 |
commit | d15865d73320acdf436dbc65d169384fc6a2eb21 (patch) | |
tree | c8d059d9e3b1251fb69e383df1f7b023b912a762 /ace/Synch_T.h | |
parent | 852ea7a8f9b54d2736e42048ec8c857a4908589a (diff) | |
download | ATCD-d15865d73320acdf436dbc65d169384fc6a2eb21.tar.gz |
ChangeLogTag:Mon Jul 19 22:46:54 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Synch_T.h')
-rw-r--r-- | ace/Synch_T.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/ace/Synch_T.h b/ace/Synch_T.h index b89d1b0a707..fecba0de29d 100644 --- a/ace/Synch_T.h +++ b/ace/Synch_T.h @@ -108,14 +108,14 @@ class ACE_Reverse_Lock : public ACE_Lock // on the lock, and release() on this class calls acquire() on // the lock. // - // One motivation for this class is when we temporarily want to - // release a lock (which we have already acquired) but then - // reaquire it soon after. An alternative design would be to - // add a Anti_Guard or Reverse_Guard class which would release() - // on construction and acquire() destruction. However, there - // are *many* varieties of the Guard class and this design - // choice would lead to at least 6 new classes. One new - // ACE_Reverse_Lock class seemed more reasonable. + // One motivation for this class is when we temporarily want to + // release a lock (which we have already acquired) but then + // reaquire it soon after. An alternative design would be to + // add a Anti_Guard or Reverse_Guard class which would release() + // on construction and acquire() destruction. However, there + // are *many* varieties of the Guard class and this design + // choice would lead to at least 6 new classes. One new + // ACE_Reverse_Lock class seemed more reasonable. public: typedef ACE_LOCKING_MECHANISM ACE_LOCK; @@ -154,12 +154,8 @@ public: // Explicitly destroy the lock. private: - ACE_LOCKING_MECHANISM *lock_; + ACE_LOCKING_MECHANISM &lock_; // The concrete locking mechanism that all the methods delegate to. - - int delete_lock_; - // This flag keep track of whether we are responsible for deleting - // the lock }; template <class ACE_LOCK, class TYPE> |