diff options
Diffstat (limited to 'connectivity/source/drivers/jdbc/Object.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/Object.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx index 4d0bdc98fab0..5f1093a3691f 100644 --- a/connectivity/source/drivers/jdbc/Object.cxx +++ b/connectivity/source/drivers/jdbc/Object.cxx @@ -79,12 +79,12 @@ oslInterlockedCount& getJavaVMRefCount() // ----------------------------------------------------------------------------- void SDBThreadAttach::addRef() { - osl_incrementInterlockedCount(&getJavaVMRefCount()); + osl_atomic_increment(&getJavaVMRefCount()); } // ----------------------------------------------------------------------------- void SDBThreadAttach::releaseRef() { - osl_decrementInterlockedCount(&getJavaVMRefCount()); + osl_atomic_decrement(&getJavaVMRefCount()); if ( getJavaVMRefCount() == 0 ) { getJavaVM2(::rtl::Reference< jvmaccess::VirtualMachine >(),sal_True); |