epicsSingletonMutex.patch from lp:1479316
This commit is contained in:
committed by
Michael Davidsaver
parent
9d00978176
commit
b6aea68304
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user