Logo Search packages:      
Sourcecode: icu version File versions  Download package

SimpleSingleton Struct Reference

#include <mutex.h>

List of all members.


Detailed Description

Singleton struct with shared instantiation/mutexing code. Simple: Does not remember if a previous instantiation failed. Best used if the instantiation can really only fail with an out-of-memory error, otherwise use a TriStateSingleton. Best used via SimpleSingletonWrapper or similar. Define a static SimpleSingleton instance via the STATIC_SIMPLE_SINGLETON macro.

Definition at line 92 of file mutex.h.


Public Member Functions

void * getInstance (InstantiatorFn *instantiator, const void *context, void *&duplicate, UErrorCode &errorCode)
void reset ()

Public Attributes

void * fInstance

The documentation for this struct was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index