epicsSingletonMutex.patch from lp:1479316

This commit is contained in:
Ambroz Bizjak
2015-08-18 14:38:18 -04:00
committed by Michael Davidsaver
parent 9d00978176
commit b6aea68304

View File

@@ -52,9 +52,9 @@ void SingletonUntyped :: incrRefCount ( PBuild pBuild )
void SingletonUntyped :: decrRefCount ( PDestroy pDestroy )
{
assert ( _refCount > 0 );
epicsGuard < epicsMutex >
guard ( *pEPICSSigletonMutex );
assert ( _refCount > 0 );
_refCount--;
if ( _refCount == 0 ) {
( *pDestroy ) ( _pInstance );