#include "epicsSingleton.h"
Definition at line 24 of file epicsSingleton.h.
typedef void*( * SingletonUntyped::PBuild) () |
typedef void( * SingletonUntyped::PDestroy) (void *) |
SingletonUntyped::SingletonUntyped |
( |
| ) |
|
|
inline |
SingletonUntyped::~SingletonUntyped |
( |
| ) |
|
|
inline |
Definition at line 169 of file epicsSingleton.h.
179 assert ( _refCount == 0 );
180 assert ( _pInstance == 0 );
#define assert(exp)
Declare that a condition should be true.
void SingletonUntyped::decrRefCount |
( |
PDestroy |
pDestroy | ) |
|
Definition at line 49 of file epicsSingletonMutex.cpp.
52 guard ( *pEPICSSigletonMutex );
55 if ( _refCount == 0 ) {
56 ( *pDestroy ) ( _pInstance );
#define assert(exp)
Declare that a condition should be true.
void SingletonUntyped::incrRefCount |
( |
PBuild |
pBuild | ) |
|
Definition at line 37 of file epicsSingletonMutex.cpp.
41 guard ( *pEPICSSigletonMutex );
43 if ( _refCount == 0 ) {
44 _pInstance = ( * pBuild ) ();
#define assert(exp)
Declare that a condition should be true.
void SingletonMutexOnce(void *)
LIBCOM_API void epicsStdCall epicsThreadOnce(epicsThreadOnceId *id, EPICSTHREADFUNC, void *arg)
void * SingletonUntyped::pInstance |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: