ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Future< T > Class Template Reference

This class implements a ``single write, multiple read'' pattern that can be used to return results from asynchronous method invocations. */ template <class T> class ACE_Future { public: / Constructor. ACE_Future ();. More...

#include <Future.h>

Detailed Description

template<class T>
class ACE_Future< T >

This class implements a ``single write, multiple read'' pattern that can be used to return results from asynchronous method invocations. */ template <class T> class ACE_Future { public: / Constructor. ACE_Future ();.

/ Copy constructor binds this and r to the same / ACE_Future_Rep. An ACE_Future_Rep is created if necessary. ACE_Future (const ACE_Future<T> &r);

/ Constructor that initialises an ACE_Future to point to the / result r immediately. ACE_Future (const T &r);

/ Destructor. ~ACE_Future ();

/ Assignment operator that binds this and r to the same / ACE_Future_Rep. An ACE_Future_Rep is created if necessary. void operator = (const ACE_Future<T> &r);

/ Cancel an ACE_Future and assign the value r. It is used if a / client does not want to wait for the value to be produced. int cancel (const T &r);

/** Cancel an ACE_Future. Put the future into its initial state. Returns 0 on succes and -1 on failure. It is now possible to reuse the ACE_Future. But remember, the ACE_Future is now bound to a new ACE_Future_Rep.


The documentation for this class was generated from the following file: