summaryrefslogtreecommitdiff
path: root/cppu/qa
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/qa')
-rw-r--r--cppu/qa/test_any.cxx4
-rw-r--r--cppu/qa/test_reference.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx
index 3bb86f629f51..05a07b85c7a2 100644
--- a/cppu/qa/test_any.cxx
+++ b/cppu/qa/test_any.cxx
@@ -66,13 +66,13 @@ public:
Base(): m_count(0) {}
void acquire() {
- if (osl_incrementInterlockedCount(&m_count) == SAL_MAX_INT32) {
+ if (osl_atomic_increment(&m_count) == SAL_MAX_INT32) {
abort();
}
}
void release() {
- if (osl_decrementInterlockedCount(&m_count) == 0) {
+ if (osl_atomic_decrement(&m_count) == 0) {
delete this;
}
}
diff --git a/cppu/qa/test_reference.cxx b/cppu/qa/test_reference.cxx
index 6fc2cfea0263..b998238f6b39 100644
--- a/cppu/qa/test_reference.cxx
+++ b/cppu/qa/test_reference.cxx
@@ -67,12 +67,12 @@ public:
virtual void SAL_CALL acquire() throw ()
{
- osl_incrementInterlockedCount( &m_refCount );
+ osl_atomic_increment( &m_refCount );
}
virtual void SAL_CALL release() throw ()
{
- if ( 0 == osl_decrementInterlockedCount( &m_refCount ) )
+ if ( 0 == osl_atomic_decrement( &m_refCount ) )
delete this;
}