diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-21 14:18:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-21 14:19:10 +0200 |
commit | 19277d02fb996058e896725bae7500f356f08af0 (patch) | |
tree | 243a2fc5bbba794f03a865527407304aa2de4554 /cppu/source/LogBridge/LogBridge.cxx | |
parent | bcce27d2832a2b098a42cbbd365df35948b9d0ac (diff) |
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'cppu/source/LogBridge/LogBridge.cxx')
-rw-r--r-- | cppu/source/LogBridge/LogBridge.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cppu/source/LogBridge/LogBridge.cxx b/cppu/source/LogBridge/LogBridge.cxx index ec140d7d5c16..f6be81dec24d 100644 --- a/cppu/source/LogBridge/LogBridge.cxx +++ b/cppu/source/LogBridge/LogBridge.cxx @@ -20,6 +20,7 @@ #include "osl/mutex.hxx" #include "osl/thread.h" +#include "osl/thread.hxx" #include "uno/dispatcher.h" #include "typelib/typedescription.hxx" #include "cppu/helper/purpenv/Environment.hxx" @@ -79,7 +80,7 @@ void LogBridge::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 LogBridge::v_enter(void) @@ -89,7 +90,7 @@ void LogBridge::v_enter(void) OSL_ASSERT(m_count >= 0); if (m_count == 0) - m_threadId = osl_getThreadIdentifier(NULL); + m_threadId = osl::Thread::getCurrentIdentifier(); ++ m_count; } @@ -115,7 +116,7 @@ int LogBridge::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"); |