Applied Ambroz Bizjak's epicsSingletonMutex.patch

This commit is contained in:
Andrew Johnson
2015-08-31 11:54:04 -05:00
parent a9c4d59537
commit 53bf7cd994
@@ -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 );