summaryrefslogtreecommitdiff
path: root/cppu/source/AffineBridge
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/AffineBridge
parentbcce27d2832a2b098a42cbbd365df35948b9d0ac (diff)
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'cppu/source/AffineBridge')
-rw-r--r--cppu/source/AffineBridge/AffineBridge.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/cppu/source/AffineBridge/AffineBridge.cxx b/cppu/source/AffineBridge/AffineBridge.cxx
index 1495f56adcc2..5a23ae212d0d 100644
--- a/cppu/source/AffineBridge/AffineBridge.cxx
+++ b/cppu/source/AffineBridge/AffineBridge.cxx
@@ -145,7 +145,7 @@ AffineBridge::~AffineBridge(void)
{
LOG_LIFECYCLE_AffineBridge_emit(fprintf(stderr, "LIFE: %s -> %p\n", "AffineBridge::~AffineBridge(void)", this));
- if (m_pInnerThread && osl_getThreadIdentifier(NULL) != m_innerThreadId)
+ if (m_pInnerThread && osl::Thread::getCurrentIdentifier() != m_innerThreadId)
{
m_message = CB_DONE;
m_innerCondition.set();
@@ -165,7 +165,7 @@ AffineBridge::~AffineBridge(void)
void AffineBridge::outerDispatch(int loop)
{
- OSL_ASSERT(m_outerThreadId == osl_getThreadIdentifier(NULL));
+ OSL_ASSERT(m_outerThreadId == osl::Thread::getCurrentIdentifier());
OSL_ASSERT(m_innerThreadId != m_outerThreadId);
Msg mm;
@@ -204,7 +204,7 @@ void AffineBridge::outerDispatch(int loop)
void AffineBridge::innerDispatch(void)
{
- OSL_ASSERT(m_innerThreadId == osl_getThreadIdentifier(NULL));
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
OSL_ASSERT(m_innerThreadId != m_outerThreadId);
Msg mm;
@@ -249,7 +249,7 @@ void AffineBridge::v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam)
bool resetId = false;
if (!m_outerThreadId)
{
- m_outerThreadId = osl_getThreadIdentifier(NULL);
+ m_outerThreadId = osl::Thread::getCurrentIdentifier();
resetId = true;
}
@@ -299,16 +299,16 @@ void AffineBridge::v_enter(void)
m_innerMutex.acquire();
if (!m_enterCount)
- m_innerThreadId = osl_getThreadIdentifier(NULL);
+ m_innerThreadId = osl::Thread::getCurrentIdentifier();
- OSL_ASSERT(m_innerThreadId == osl_getThreadIdentifier(NULL));
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
++ m_enterCount;
}
void AffineBridge::v_leave(void)
{
- OSL_ASSERT(m_innerThreadId == osl_getThreadIdentifier(NULL));
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
-- m_enterCount;
if (!m_enterCount)
@@ -325,7 +325,7 @@ int AffineBridge::v_isValid(rtl::OUString * pReason)
else
{
- result = m_innerThreadId == osl_getThreadIdentifier(NULL);
+ result = m_innerThreadId == osl::Thread::getCurrentIdentifier();
if (!result)
*pReason = rtl::OUString("wrong thread");