NAME

ACE_Singleton - A Singleton Adapter.

SYNOPSIS


#include <ace/Singleton.h>


template<class TYPE, class LOCK>
class ACE_Singleton
{
  public:
    static TYPE *instance (void);
    void dump (void) const;
  protected:
    static TYPE *instance_;
    static LOCK ace_singleton_lock_;
};

DESCRIPTION

PUBLIC MEMBERS

static TYPE *instance (void);
void dump (void) const;

PROTECTED MEMBERS

static TYPE *instance_;
static LOCK ace_singleton_lock_;

AUTHOR

Tim Harrison (harrison@cs.wustl.edu) and Douglas C. Schmidt

LIBRARY

ace