summaryrefslogtreecommitdiffstats
path: root/connectivity/source/resource/sharedresources.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/resource/sharedresources.cxx')
-rw-r--r--connectivity/source/resource/sharedresources.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx
index 1fc4a66f5272..246591063547 100644
--- a/connectivity/source/resource/sharedresources.cxx
+++ b/connectivity/source/resource/sharedresources.cxx
@@ -110,14 +110,14 @@ namespace connectivity
//--------------------------------------------------------------------
void SharedResources_Impl::registerClient()
{
- osl_incrementInterlockedCount( &s_nClients );
+ osl_atomic_increment( &s_nClients );
}
//--------------------------------------------------------------------
void SharedResources_Impl::revokeClient()
{
::osl::MutexGuard aGuard( getMutex() );
- if ( 0 == osl_decrementInterlockedCount( &s_nClients ) )
+ if ( 0 == osl_atomic_decrement( &s_nClients ) )
{
delete s_pInstance;
s_pInstance = NULL;