summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/inc/o3tl/cow_wrapper.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/o3tl/inc/o3tl/cow_wrapper.hxx b/o3tl/inc/o3tl/cow_wrapper.hxx
index 5b9ce7877adc..b54f99d0f190 100644
--- a/o3tl/inc/o3tl/cow_wrapper.hxx
+++ b/o3tl/inc/o3tl/cow_wrapper.hxx
@@ -50,13 +50,13 @@ namespace o3tl
struct ThreadSafeRefCountingPolicy
{
typedef oslInterlockedCount ref_count_t;
- static void incrementCount( ref_count_t& rCount ) { osl_incrementInterlockedCount(&rCount); }
+ static void incrementCount( ref_count_t& rCount ) { osl_atomic_increment(&rCount); }
static bool decrementCount( ref_count_t& rCount )
{
if( rCount == 1 ) // caller is already the only/last reference
return false;
else
- return osl_decrementInterlockedCount(&rCount) != 0;
+ return osl_atomic_decrement(&rCount) != 0;
}
};