23 # define SIZE_MAX UINT_MAX 34 pEPICSSigletonMutex = newEpicsMutex;
41 guard ( *pEPICSSigletonMutex );
43 if ( _refCount == 0 ) {
44 _pInstance = ( * pBuild ) ();
52 guard ( *pEPICSSigletonMutex );
55 if ( _refCount == 0 ) {
56 ( *pDestroy ) ( _pInstance );
#define assert(exp)
Declare that a condition should be true.
void decrRefCount(PDestroy)
void SingletonMutexOnce(void *)
#define EPICS_THREAD_ONCE_INIT
APIs for the epicsMutex mutual exclusion semaphore.
LIBCOM_API void epicsStdCall epicsThreadOnce(epicsThreadOnceId *id, EPICSTHREADFUNC, void *arg)
void incrRefCount(PBuild)
C++ and C descriptions for a thread.