migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomic
Change-Id: I0e6992afbeffaf3b993e6630fb396d93012890e0 Reviewed-on: https://gerrit.libreoffice.org/632 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
This commit is contained in:
@@ -67,12 +67,12 @@ public:
|
||||
|
||||
virtual void SAL_CALL acquire() throw ()
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
osl_atomic_increment( &m_refCount );
|
||||
}
|
||||
|
||||
virtual void SAL_CALL release() throw ()
|
||||
{
|
||||
if ( 0 == osl_decrementInterlockedCount( &m_refCount ) )
|
||||
if ( 0 == osl_atomic_decrement( &m_refCount ) )
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user