summaryrefslogtreecommitdiffstats
path: root/cli_ure
diff options
context:
space:
mode:
Diffstat (limited to 'cli_ure')
-rw-r--r--cli_ure/source/uno_bridge/cli_bridge.cxx4
-rw-r--r--cli_ure/source/uno_bridge/cli_proxy.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cli_ure/source/uno_bridge/cli_bridge.cxx b/cli_ure/source/uno_bridge/cli_bridge.cxx
index aed48dfb6e29..53329e8d80b6 100644
--- a/cli_ure/source/uno_bridge/cli_bridge.cxx
+++ b/cli_ure/source/uno_bridge/cli_bridge.cxx
@@ -187,7 +187,7 @@ namespace cli_uno
*/
void Bridge::acquire() const SAL_THROW(())
{
- if (1 == osl_incrementInterlockedCount( &m_ref ))
+ if (1 == osl_atomic_increment( &m_ref ))
{
if (m_registered_cli2uno)
{
@@ -206,7 +206,7 @@ void Bridge::acquire() const SAL_THROW(())
//__________________________________________________________________________________________________
void Bridge::release() const SAL_THROW(())
{
- if (! osl_decrementInterlockedCount( &m_ref ))
+ if (! osl_atomic_decrement( &m_ref ))
{
uno_revokeMapping(
m_registered_cli2uno
diff --git a/cli_ure/source/uno_bridge/cli_proxy.cxx b/cli_ure/source/uno_bridge/cli_proxy.cxx
index 76a58dd29a64..2fd70fc5ede3 100644
--- a/cli_ure/source/uno_bridge/cli_proxy.cxx
+++ b/cli_ure/source/uno_bridge/cli_proxy.cxx
@@ -909,7 +909,7 @@ void SAL_CALL CliProxy::uno_DispatchMethod(
}
inline void CliProxy::acquire() const
{
- if (1 == osl_incrementInterlockedCount( &m_ref ))
+ if (1 == osl_atomic_increment( &m_ref ))
{
// rebirth of proxy zombie
void * that = const_cast< CliProxy * >( this );
@@ -926,7 +926,7 @@ inline void CliProxy::acquire() const
//---------------------------------------------------------------------------
inline void CliProxy::release() const
{
- if (0 == osl_decrementInterlockedCount( &m_ref ))
+ if (0 == osl_atomic_decrement( &m_ref ))
{
// revoke from uno env on last release,
// The proxy can be resurrected if acquire is called before the uno