summaryrefslogtreecommitdiff
path: root/ace/Future.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-05 17:23:07 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-05 17:23:07 +0000
commit349055b47d3a65318c480860b427e27024c41822 (patch)
tree15b928ddf1e6593063b046eecf4a1571b037d1cc /ace/Future.h
parentccf17bf2229d70940197202af39cf374113a7149 (diff)
downloadATCD-349055b47d3a65318c480860b427e27024c41822.tar.gz
ChangeLogTag:Mon Jul 5 11:59:49 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Future.h')
-rw-r--r--ace/Future.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/ace/Future.h b/ace/Future.h
index cdde4c0a958..b1f71527f63 100644
--- a/ace/Future.h
+++ b/ace/Future.h
@@ -97,33 +97,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
@@ -164,6 +137,31 @@ private:
// separates the error value from the result, and also permits
// timeouts.
+ // = Handle reference counting and object lifetime for ACE_Future_Rep<T>.
+
+ 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)
+
void dump (void) const;
// Dump the state of an object.