diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-28 15:47:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-28 15:47:32 +0200 |
commit | 4ecc6555878027f1cc0f853e1aa023f12167f96f (patch) | |
tree | 3c3b5293af846ad4ff9c3176f3594502cc29e3fa /bridges/source/jni_uno/jni_bridge.cxx | |
parent | 52ffad9bb7be800790de6d918154dbeade88cadd (diff) |
Replace use of oslInterlockedCount with std::atomic in bridges
Change-Id: Iad47a01fd283345a2461eaaea50633bf840e5201
Diffstat (limited to 'bridges/source/jni_uno/jni_bridge.cxx')
-rw-r--r-- | bridges/source/jni_uno/jni_bridge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx index 7926994ebfc2..c8106bb19390 100644 --- a/bridges/source/jni_uno/jni_bridge.cxx +++ b/bridges/source/jni_uno/jni_bridge.cxx @@ -194,7 +194,7 @@ namespace jni_uno void Bridge::acquire() const { - if (osl_atomic_increment( &m_ref ) == 1) + if (++m_ref == 1) { if (m_registered_java2uno) { @@ -216,7 +216,7 @@ void Bridge::acquire() const void Bridge::release() const { - if (! osl_atomic_decrement( &m_ref )) + if (! --m_ref ) { uno_revokeMapping( m_registered_java2uno |