summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-09-22 01:51:12 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-09-25 01:55:38 +0000
commit750fc206113a796035cbc05fb904fbae0eb771a8 (patch)
tree4ea1f0378c2b6d7f50480d3b9051de91780219cd /embedserv
parentbcd2b017088822ea95e9d33d1d0dc360c0ec8d74 (diff)
replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx4
-rw-r--r--embedserv/source/embed/iipaobj.cxx4
-rw-r--r--embedserv/source/embed/servprov.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 92feee5d6356..783ab45138e4 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -341,7 +341,7 @@ STDMETHODIMP EmbedDocument_Impl::QueryInterface( REFIID riid, void FAR* FAR* ppv
STDMETHODIMP_(ULONG) EmbedDocument_Impl::AddRef()
{
- return osl_incrementInterlockedCount( &m_refCount);
+ return osl_atomic_increment( &m_refCount);
}
STDMETHODIMP_(ULONG) EmbedDocument_Impl::Release()
@@ -351,7 +351,7 @@ STDMETHODIMP_(ULONG) EmbedDocument_Impl::Release()
if ( m_refCount == 1 )
m_xOwnAccess->ClearEmbedDocument();
- sal_Int32 nCount = osl_decrementInterlockedCount( &m_refCount );
+ sal_Int32 nCount = osl_atomic_decrement( &m_refCount );
if ( nCount == 0 )
delete this;
return nCount;
diff --git a/embedserv/source/embed/iipaobj.cxx b/embedserv/source/embed/iipaobj.cxx
index 41a9469f3e99..bfff766af90e 100644
--- a/embedserv/source/embed/iipaobj.cxx
+++ b/embedserv/source/embed/iipaobj.cxx
@@ -58,12 +58,12 @@ STDMETHODIMP CIIAObj::QueryInterface(REFIID riid, LPVOID FAR *ppv)
STDMETHODIMP_(ULONG) CIIAObj::AddRef(void)
{
- return osl_incrementInterlockedCount( &m_refCount);
+ return osl_atomic_increment( &m_refCount);
}
STDMETHODIMP_(ULONG) CIIAObj::Release(void)
{
- sal_Int32 nCount = osl_decrementInterlockedCount( &m_refCount);
+ sal_Int32 nCount = osl_atomic_decrement( &m_refCount);
if ( nCount == 0 )
delete this;
diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx
index a7c2124ee7bb..e6fb95880007 100644
--- a/embedserv/source/embed/servprov.cxx
+++ b/embedserv/source/embed/servprov.cxx
@@ -258,7 +258,7 @@ STDMETHODIMP EmbedProviderFactory_Impl::QueryInterface(REFIID riid, void FAR* FA
STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::AddRef()
{
- return osl_incrementInterlockedCount( &m_refCount);
+ return osl_atomic_increment( &m_refCount);
}
STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::Release()