summaryrefslogtreecommitdiff
path: root/cppu/source/UnsafeBridge
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-21 14:18:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-21 14:19:10 +0200
commit19277d02fb996058e896725bae7500f356f08af0 (patch)
tree243a2fc5bbba794f03a865527407304aa2de4554 /cppu/source/UnsafeBridge
parentbcce27d2832a2b098a42cbbd365df35948b9d0ac (diff)
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'cppu/source/UnsafeBridge')
-rw-r--r--cppu/source/UnsafeBridge/UnsafeBridge.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cppu/source/UnsafeBridge/UnsafeBridge.cxx b/cppu/source/UnsafeBridge/UnsafeBridge.cxx
index 6a5f4831f282..511969116dbb 100644
--- a/cppu/source/UnsafeBridge/UnsafeBridge.cxx
+++ b/cppu/source/UnsafeBridge/UnsafeBridge.cxx
@@ -20,6 +20,7 @@
#include "osl/mutex.hxx"
#include "osl/thread.h"
+#include "osl/thread.hxx"
#include "cppu/helper/purpenv/Environment.hxx"
#include "cppu/helper/purpenv/Mapping.hxx"
@@ -89,7 +90,7 @@ void UnsafeBridge::v_callOut_v(uno_EnvCallee * pCallee, va_list * pParam)
++ m_count;
if (!m_threadId)
- m_threadId = osl_getThreadIdentifier(NULL);
+ m_threadId = osl::Thread::getCurrentIdentifier();
}
void UnsafeBridge::v_enter(void)
@@ -99,7 +100,7 @@ void UnsafeBridge::v_enter(void)
OSL_ASSERT(m_count >= 0);
if (m_count == 0)
- m_threadId = osl_getThreadIdentifier(NULL);
+ m_threadId = osl::Thread::getCurrentIdentifier();
++ m_count;
}
@@ -125,7 +126,7 @@ int UnsafeBridge::v_isValid(rtl::OUString * pReason)
}
else
{
- result = m_threadId == osl_getThreadIdentifier(NULL);
+ result = m_threadId == osl::Thread::getCurrentIdentifier();
if (!result)
*pReason = rtl::OUString("wrong thread");