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);
Global access point to the Singleton.
void dump (void) const;
Dump the state of the object.
PROTECTED MEMBERS
static TYPE *instance_;
Pointer to the Singleton instance.
static LOCK ace_singleton_lock_;
Lock the creation of the singleton.
AUTHOR
Tim Harrison (harrison@cs.wustl.edu) and Douglas C. Schmidt
LIBRARY
ace