Adapt to osl_atomic_inc-/decrement

Change-Id: I848873b07ab05cefdc755a8bf1301907fdfbc299
This commit is contained in:
Stephan Bergmann
2014-02-22 18:53:27 +01:00
parent b7259532d8
commit c19cb642db
3 changed files with 5 additions and 5 deletions

View File

@@ -71,13 +71,13 @@ public:
*/
virtual oslInterlockedCount SAL_CALL acquire() SAL_THROW(())
{
return ::osl_incrementInterlockedCount (&m_nReferenceCount);
return osl_atomic_increment (&m_nReferenceCount);
}
virtual oslInterlockedCount SAL_CALL release() SAL_THROW(())
{
oslInterlockedCount result;
result = ::osl_decrementInterlockedCount (&m_nReferenceCount);
result = ::osl_atomic_decrement (&m_nReferenceCount);
if (result == 0)
{
// Last reference released.

View File

@@ -65,7 +65,7 @@ SvtRulerAccessible::~SvtRulerAccessible()
if( IsAlive() )
{
osl_incrementInterlockedCount( &m_refCount );
osl_atomic_increment( &m_refCount );
dispose(); // set mpRepr = NULL & release all childs
}
}

View File

@@ -64,7 +64,7 @@ SvxPixelCtlAccessible::~SvxPixelCtlAccessible()
{
if( IsAlive() )
{
osl_incrementInterlockedCount( &m_refCount );
osl_atomic_increment( &m_refCount );
dispose(); // set mpRepr = NULL & release all childs
}
}
@@ -727,7 +727,7 @@ SvxPixelCtlAccessibleChild::~SvxPixelCtlAccessibleChild()
if( IsAlive() )
{
osl_incrementInterlockedCount( &m_refCount );
osl_atomic_increment( &m_refCount );
dispose(); // set mpRepr = NULL & release all childs
}
}