diff options
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Future.cpp | 8 | ||||
-rw-r--r-- | ace/Future.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ace/Future.cpp b/ace/Future.cpp index d2f452b1874..c633b91dd2b 100644 --- a/ace/Future.cpp +++ b/ace/Future.cpp @@ -150,7 +150,7 @@ ACE_Future_Rep<T>::~ACE_Future_Rep (void) } template <class T> int -ACE_Future_Rep<T>::ready (void) +ACE_Future_Rep<T>::ready (void) const { return this->value_ != 0; } @@ -200,7 +200,7 @@ ACE_Future_Rep<T>::set (const T &r, template <class T> int ACE_Future_Rep<T>::get (T &value, - ACE_Time_Value *tv) + ACE_Time_Value *tv) const { // If the value is already produced, return it. if (this->value_ == 0) @@ -348,7 +348,7 @@ ACE_Future<T>::set (const T &r) } template <class T> int -ACE_Future<T>::ready (void) +ACE_Future<T>::ready (void) const { // We're ready if the ACE_Future_rep is ready... return this->future_rep_->ready (); @@ -356,7 +356,7 @@ ACE_Future<T>::ready (void) template <class T> int ACE_Future<T>::get (T &value, - ACE_Time_Value *tv) + ACE_Time_Value *tv) const { // We return the ACE_Future_rep. return this->future_rep_->get (value, tv); diff --git a/ace/Future.h b/ace/Future.h index b0bf55816b3..451f5908327 100644 --- a/ace/Future.h +++ b/ace/Future.h @@ -113,7 +113,7 @@ private: /// Wait up to <tv> time to get the <value>. Note that <tv> must be /// specified in absolute time rather than relative time. int get (T &value, - ACE_Time_Value *tv); + ACE_Time_Value *tv) const; /** * Attaches the specified observer to a subject (i.e. the @@ -195,7 +195,7 @@ private: ACE_Future_Rep<T> *new_rep); /// Is result available? - int ready (void); + int ready (void) const; /// Pointer to the result. T *value_; @@ -288,7 +288,7 @@ public: /// Wait up to <tv> time to get the <value>. Note that <tv> must be /// specified in absolute time rather than relative time. int get (T &value, - ACE_Time_Value *tv = 0); + ACE_Time_Value *tv = 0) const; /** * Type conversion, which obtains the result of the asynchronous @@ -302,7 +302,7 @@ public: operator T (); /// Check if the result is available. - int ready (void); + int ready (void) const; /** * Attaches the specified observer to a subject (i.e. the |