diff options
Diffstat (limited to 'connectivity/source/simpledbt/refbase.cxx')
-rw-r--r-- | connectivity/source/simpledbt/refbase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/simpledbt/refbase.cxx b/connectivity/source/simpledbt/refbase.cxx index 9af0ada8f2f7..7c9fe5e6b550 100644 --- a/connectivity/source/simpledbt/refbase.cxx +++ b/connectivity/source/simpledbt/refbase.cxx @@ -35,13 +35,13 @@ namespace connectivity //---------------------------------------------------------------- oslInterlockedCount SAL_CALL ORefBase::acquire() { - return osl_incrementInterlockedCount(&m_refCount); + return osl_atomic_increment(&m_refCount); } //---------------------------------------------------------------- oslInterlockedCount SAL_CALL ORefBase::release() { - oslInterlockedCount nNewRefCount = osl_decrementInterlockedCount(&m_refCount); + oslInterlockedCount nNewRefCount = osl_atomic_decrement(&m_refCount); if (0 == nNewRefCount) delete this; |