diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-09-16 02:00:14 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-09-17 14:26:12 +0000 |
commit | 195f17ee40003f0ff74d08fecf5d68afe9cb1036 (patch) | |
tree | beca88d96ae704d4ecb03defd9390b1a05a24c47 /cppu/qa/test_reference.cxx | |
parent | Help compilers with explicit template argument. (diff) | |
download | core-195f17ee40003f0ff74d08fecf5d68afe9cb1036.tar.gz core-195f17ee40003f0ff74d08fecf5d68afe9cb1036.zip |
migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomic
Change-Id: I0e6992afbeffaf3b993e6630fb396d93012890e0
Reviewed-on: https://gerrit.libreoffice.org/632
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'cppu/qa/test_reference.cxx')
-rw-r--r-- | cppu/qa/test_reference.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |