summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/componentmodule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/componentmodule.cxx')
-rw-r--r--comphelper/source/misc/componentmodule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx
index 409714893885..8a4cc74f8ced 100644
--- a/comphelper/source/misc/componentmodule.cxx
+++ b/comphelper/source/misc/componentmodule.cxx
@@ -85,7 +85,7 @@ namespace comphelper
void OModule::registerClient( OModule::ClientAccess )
{
::osl::MutexGuard aGuard(m_aMutex);
- if ( 1 == osl_incrementInterlockedCount( &m_nClients ) )
+ if ( 1 == osl_atomic_increment( &m_nClients ) )
onFirstClient();
}
@@ -93,7 +93,7 @@ namespace comphelper
void OModule::revokeClient( OModule::ClientAccess )
{
::osl::MutexGuard aGuard(m_aMutex);
- if ( 0 == osl_decrementInterlockedCount( &m_nClients ) )
+ if ( 0 == osl_atomic_decrement( &m_nClients ) )
onLastClient();
}