osl_atomic_increment/decrement are macros

Change-Id: I3a294c5c800597f3b17395e1e02944f5279e3753
This commit is contained in:
Stephan Bergmann 2013-02-21 17:01:38 +01:00
parent 712b33cdbb
commit ed316fc677
2 changed files with 4 additions and 4 deletions

View file

@ -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()
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 ) );

View file

@ -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;
} }