diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-27 02:01:57 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-27 02:01:57 +0000 |
commit | 990aebbdace76de3be158f407123bf05da2d45a8 (patch) | |
tree | e2af511d2260dc0020a3c20f1e0107e4fbea1c14 /ace/Future.h | |
parent | daeef99b0c59e308a2f0dd8e5b3677bafd368eac (diff) | |
download | ATCD-990aebbdace76de3be158f407123bf05da2d45a8.tar.gz |
ChangeLogTag:Mon Jul 26 20:50:37 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Future.h')
-rw-r--r-- | ace/Future.h | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/ace/Future.h b/ace/Future.h index 0273775419e..df014f98567 100644 --- a/ace/Future.h +++ b/ace/Future.h @@ -98,33 +98,6 @@ class ACE_Future_Rep private: friend class ACE_Future<T>; - // Create, attach, detach and assign encapsulates the reference - // count handling and the object lifetime of ACE_Future_Rep<T> - // instances. - - static ACE_Future_Rep<T> *create (void); - // Create a ACE_Future_Rep<T> and initialize the reference count. - - static ACE_Future_Rep<T> *attach (ACE_Future_Rep<T> *&rep); - // Increase the reference count and return argument. Uses the - // attribute "value_ready_mutex_" to synchronize reference count - // updating. - // - // Precondition (rep != 0). - - static void detach (ACE_Future_Rep<T> *&rep); - // Decreases the reference count and and deletes rep if there are no - // more references to rep. - // - // Precondition (rep != 0) - - static void assign (ACE_Future_Rep<T> *&rep, - ACE_Future_Rep<T> *new_rep); - // Decreases the rep's reference count and and deletes rep if there - // are no more references to rep. Then assigns new_rep to rep. - // - // Precondition (rep != 0 && new_rep != 0) - int set (const T &r, ACE_Future<T> &caller); // Set the result value. The specified <caller> represents the @@ -171,6 +144,31 @@ private: ACE_ALLOC_HOOK_DECLARE; // Declare the dynamic allocation hooks. + // = Encapsulate reference count and object lifetime of instances. + + static ACE_Future_Rep<T> *create (void); + // Create a ACE_Future_Rep<T> and initialize the reference count. + + static ACE_Future_Rep<T> *attach (ACE_Future_Rep<T> *&rep); + // Increase the reference count and return argument. Uses the + // attribute "value_ready_mutex_" to synchronize reference count + // updating. + // + // Precondition (rep != 0). + + static void detach (ACE_Future_Rep<T> *&rep); + // Decreases the reference count and and deletes rep if there are no + // more references to rep. + // + // Precondition (rep != 0) + + static void assign (ACE_Future_Rep<T> *&rep, + ACE_Future_Rep<T> *new_rep); + // Decreases the rep's reference count and and deletes rep if there + // are no more references to rep. Then assigns new_rep to rep. + // + // Precondition (rep != 0 && new_rep != 0) + // = Constructor and destructor private ACE_Future_Rep (void); ~ACE_Future_Rep (void); |