summaryrefslogtreecommitdiff
path: root/store/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-09-16 02:00:14 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-09-17 14:26:12 +0000
commit195f17ee40003f0ff74d08fecf5d68afe9cb1036 (patch)
treebeca88d96ae704d4ecb03defd9390b1a05a24c47 /store/source
parentc9d3373dadc1fbb36a6cf62661f0ec59b313d74b (diff)
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 'store/source')
-rw-r--r--store/source/object.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/object.cxx b/store/source/object.cxx
index 3307999083f7..20c7dae7e782 100644
--- a/store/source/object.cxx
+++ b/store/source/object.cxx
@@ -81,7 +81,7 @@ sal_Bool SAL_CALL OStoreObject::isKindOf (sal_uInt32 nTypeId)
*/
oslInterlockedCount SAL_CALL OStoreObject::acquire (void)
{
- oslInterlockedCount result = osl_incrementInterlockedCount (&m_nRefCount);
+ oslInterlockedCount result = osl_atomic_increment (&m_nRefCount);
return (result);
}
@@ -90,7 +90,7 @@ oslInterlockedCount SAL_CALL OStoreObject::acquire (void)
*/
oslInterlockedCount SAL_CALL OStoreObject::release (void)
{
- oslInterlockedCount result = osl_decrementInterlockedCount (&m_nRefCount);
+ oslInterlockedCount result = osl_atomic_decrement (&m_nRefCount);
if (result == 0)
{
// Last reference released.