diff options
Diffstat (limited to 'comphelper/source/misc/asyncnotification.cxx')
-rw-r--r-- | comphelper/source/misc/asyncnotification.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx index 9b799d219cf1..308ba4a11e44 100644 --- a/comphelper/source/misc/asyncnotification.cxx +++ b/comphelper/source/misc/asyncnotification.cxx @@ -50,13 +50,13 @@ namespace comphelper //-------------------------------------------------------------------- oslInterlockedCount SAL_CALL AnyEvent::acquire() { - return osl_incrementInterlockedCount( &m_refCount ); + return osl_atomic_increment( &m_refCount ); } //-------------------------------------------------------------------- oslInterlockedCount SAL_CALL AnyEvent::release() { - if ( 0 == osl_decrementInterlockedCount( &m_refCount ) ) + if ( 0 == osl_atomic_decrement( &m_refCount ) ) { delete this; return 0; |