osl_atomic_increment/decrement are macros
Change-Id: I3a294c5c800597f3b17395e1e02944f5279e3753
This commit is contained in:
parent
712b33cdbb
commit
ed316fc677
2 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,7 @@ inline AdapterImpl::~AdapterImpl()
|
|||
inline void AdapterImpl::acquire()
|
||||
SAL_THROW(())
|
||||
{
|
||||
::osl_atomic_increment( &m_nRef );
|
||||
osl_atomic_increment( &m_nRef );
|
||||
}
|
||||
//______________________________________________________________________________
|
||||
inline void AdapterImpl::release()
|
||||
|
@ -200,7 +200,7 @@ inline void AdapterImpl::release()
|
|||
bool delete_this = false;
|
||||
{
|
||||
MutexGuard guard( m_pFactory->m_mutex );
|
||||
if (! ::osl_atomic_decrement( &m_nRef ))
|
||||
if (! osl_atomic_decrement( &m_nRef ))
|
||||
{
|
||||
t_ptr_map::iterator iFind(
|
||||
m_pFactory->m_receiver2adapters.find( m_key ) );
|
||||
|
|
|
@ -300,13 +300,13 @@ acc_CurrentContext::~acc_CurrentContext()
|
|||
void acc_CurrentContext::acquire()
|
||||
throw ()
|
||||
{
|
||||
::osl_atomic_increment( &m_refcount );
|
||||
osl_atomic_increment( &m_refcount );
|
||||
}
|
||||
//__________________________________________________________________________________________________
|
||||
void acc_CurrentContext::release()
|
||||
throw ()
|
||||
{
|
||||
if (! ::osl_atomic_decrement( &m_refcount ))
|
||||
if (! osl_atomic_decrement( &m_refcount ))
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue