From 750fc206113a796035cbc05fb904fbae0eb771a8 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 22 Sep 2012 01:51:12 -0500 Subject: replace remaining InterlockedCount() with inlined version Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud Reviewed-by: Norbert Thiebaud --- codemaker/source/codemaker/typemanager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'codemaker') diff --git a/codemaker/source/codemaker/typemanager.cxx b/codemaker/source/codemaker/typemanager.cxx index c5add3e2e9a3..d223e48f47f3 100644 --- a/codemaker/source/codemaker/typemanager.cxx +++ b/codemaker/source/codemaker/typemanager.cxx @@ -41,13 +41,13 @@ TypeManager::~TypeManager() sal_Int32 TypeManager::acquire() { - return osl_incrementInterlockedCount(&m_pImpl->m_refCount); + return osl_atomic_increment(&m_pImpl->m_refCount); } sal_Int32 TypeManager::release() { sal_Int32 refCount = 0; - if (0 == (refCount = osl_decrementInterlockedCount(&m_pImpl->m_refCount)) ) + if (0 == (refCount = osl_atomic_decrement(&m_pImpl->m_refCount)) ) { delete m_pImpl; } -- cgit