Reference

ACE_Future_Observer(3)

ACE_Future_ObserverT

NAME

ACE_Future_Observer - ACE_Future_ObserverT

SYNOPSIS

#include <ace/Future.h>
template<class T>
class ACE_Future_Observer
{
  public:
    virtual ~ACE_Future_Observer (void);
    virtual void update (const ACE_Future<T> &future) = 0;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    ACE_Future_Observer (void);
};

DESCRIPTION

An ACE_Future_Observer object implements an object that is subscribed with an ACE_Future object so that it may be notified when the value of the ACE_Future object is written to by a writer thread.

It uses the Observer pattern

Destructor

virtual ~ACE_Future_Observer (void);

virtual void update (const ACE_Future<T> &future) = 0;

Called by the ACE_Future in which we are subscribed to when its value is written to.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

Constructor

ACE_Future_Observer (void);

AUTHOR (S)

Andres Kruse [email protected], Douglas C. Schmidt [email protected], Per Andersson [email protected], and John Tucker [email protected]

LIBRARY

ace