Kaydet (Commit) ed316fc6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

osl_atomic_increment/decrement are macros

Change-Id: I3a294c5c800597f3b17395e1e02944f5279e3753
üst 712b33cd
...@@ -191,7 +191,7 @@ inline AdapterImpl::~AdapterImpl() ...@@ -191,7 +191,7 @@ inline AdapterImpl::~AdapterImpl()
inline void AdapterImpl::acquire() inline void AdapterImpl::acquire()
SAL_THROW(()) SAL_THROW(())
{ {
::osl_atomic_increment( &m_nRef ); osl_atomic_increment( &m_nRef );
} }
//______________________________________________________________________________ //______________________________________________________________________________
inline void AdapterImpl::release() inline void AdapterImpl::release()
...@@ -200,7 +200,7 @@ inline void AdapterImpl::release() ...@@ -200,7 +200,7 @@ inline void AdapterImpl::release()
bool delete_this = false; bool delete_this = false;
{ {
MutexGuard guard( m_pFactory->m_mutex ); MutexGuard guard( m_pFactory->m_mutex );
if (! ::osl_atomic_decrement( &m_nRef )) if (! osl_atomic_decrement( &m_nRef ))
{ {
t_ptr_map::iterator iFind( t_ptr_map::iterator iFind(
m_pFactory->m_receiver2adapters.find( m_key ) ); m_pFactory->m_receiver2adapters.find( m_key ) );
......
...@@ -300,13 +300,13 @@ acc_CurrentContext::~acc_CurrentContext() ...@@ -300,13 +300,13 @@ acc_CurrentContext::~acc_CurrentContext()
void acc_CurrentContext::acquire() void acc_CurrentContext::acquire()
throw () throw ()
{ {
::osl_atomic_increment( &m_refcount ); osl_atomic_increment( &m_refcount );
} }
//__________________________________________________________________________________________________ //__________________________________________________________________________________________________
void acc_CurrentContext::release() void acc_CurrentContext::release()
throw () throw ()
{ {
if (! ::osl_atomic_decrement( &m_refcount )) if (! osl_atomic_decrement( &m_refcount ))
{ {
delete this; delete this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment