diff options
Diffstat (limited to 'salhelper')
-rw-r--r-- | salhelper/inc/salhelper/simplereferenceobject.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/salhelper/inc/salhelper/simplereferenceobject.hxx b/salhelper/inc/salhelper/simplereferenceobject.hxx index b32450c295dd..12886e111128 100644 --- a/salhelper/inc/salhelper/simplereferenceobject.hxx +++ b/salhelper/inc/salhelper/simplereferenceobject.hxx @@ -67,10 +67,10 @@ public: (which, hopefully, is quite large). */ inline void acquire() SAL_THROW(()) - { osl_incrementInterlockedCount(&m_nCount); } + { osl_atomic_increment(&m_nCount); } inline void release() SAL_THROW(()) - { if (osl_decrementInterlockedCount(&m_nCount) == 0) delete this; } + { if (osl_atomic_decrement(&m_nCount) == 0) delete this; } /** see general class documentation */ |