summaryrefslogtreecommitdiff
path: root/include/salhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-22 18:53:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 08:08:00 +0100
commitc19cb642dbce41a481f65bc342bc8dc3008211c8 (patch)
treea61e59a2c692b6f3a9123f008b9e4302ebb23e1a /include/salhelper
parentb7259532d83ea1263f6944974d71162c47203939 (diff)
Adapt to osl_atomic_inc-/decrement
Change-Id: I848873b07ab05cefdc755a8bf1301907fdfbc299
Diffstat (limited to 'include/salhelper')
-rw-r--r--include/salhelper/refobj.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/salhelper/refobj.hxx b/include/salhelper/refobj.hxx
index 16e85fbd0b8b..9a1cb9b5570e 100644
--- a/include/salhelper/refobj.hxx
+++ b/include/salhelper/refobj.hxx
@@ -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.