diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-19 22:42:13 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-01-19 22:42:13 +0000 |
commit | 4009e0931a643ed5bedd889749cce0e4500cae82 (patch) | |
tree | 500ee143d922a3a92c94877ff9dc680b4d1573ed /ace/Future.cpp | |
parent | 6e793ae1370b6c173aedf525525c9bdff3c0e8c8 (diff) | |
download | ATCD-4009e0931a643ed5bedd889749cce0e4500cae82.tar.gz |
foo
Diffstat (limited to 'ace/Future.cpp')
-rw-r--r-- | ace/Future.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Future.cpp b/ace/Future.cpp index 8e64cf09733..e16b319014e 100644 --- a/ace/Future.cpp +++ b/ace/Future.cpp @@ -103,7 +103,7 @@ ACE_Future_Rep<T>::operator T () // If the value is already produced, return it. if (this->value_ == 0) { - // constructor of ace_mon acquires the mutex + // Constructor of ace_mon acquires the mutex. ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->value_ready_mutex_, 0)); // If the value is not yet defined we must block until the @@ -113,7 +113,10 @@ ACE_Future_Rep<T>::operator T () { // wait forever if (this->value_ready_.wait () == -1) - return 0; + // What to do in this case since we've got to indicate + // failure somehow? Exceptions would be nice, but they're + // not portable... + return 0; } // Destructor releases the mutex |