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 /connectivity | |
parent | bcce27d2832a2b098a42cbbd365df35948b9d0ac (diff) |
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'connectivity')
4 files changed, 8 insertions, 4 deletions
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSRunnable.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSRunnable.cxx index 3619fd47275c..f53f422ee841 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSRunnable.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSRunnable.cxx @@ -22,6 +22,7 @@ #include "mozillasrc/MQuery.hxx" #include <osl/mutex.hxx> #include <osl/conditn.hxx> +#include <osl/thread.hxx> #include "pre_include_mozilla.h" #include <nsIProxyObjectManager.h> @@ -64,7 +65,7 @@ MNSRunnable::MNSRunnable() NS_INIT_ISUPPORTS(); _ProxiedObject=NULL; #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif AddRef(); } diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx index a7783c956df9..039db52576f5 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx @@ -24,6 +24,7 @@ #include "MQuery.hxx" #include <osl/mutex.hxx> #include <osl/conditn.hxx> +#include <osl/thread.hxx> #include "pre_include_mozilla.h" #include <nsIProxyObjectManager.h> @@ -60,7 +61,7 @@ MNSMozabProxy::MNSMozabProxy() { m_Args = NULL; #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif acquire(); } diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx index fb274ccccaea..3a618fa8c62a 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQuery.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <comphelper/processfactory.hxx> #include <com/sun/star/mozilla/XMozillaBootstrap.hpp> +#include <osl/thread.hxx> #if OSL_DEBUG_LEVEL > 0 # define OUtoCStr( x ) ( OUStringToOString ( (x), RTL_TEXTENCODING_ASCII_US).getStr()) @@ -73,7 +74,7 @@ MQuery::MQuery( const OColumnAlias& _ca ) construct(); #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif OSL_TRACE( "\tOUT MQuery::MQuery( ca )" ); diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx index 71ff4f07fb9c..6ef6759e2bbb 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx @@ -25,6 +25,7 @@ #include "MLdapAttributeMap.hxx" #include <connectivity/dbexception.hxx> +#include <osl/thread.hxx> #include "resource/mozab_res.hrc" @@ -95,7 +96,7 @@ MQueryHelper::MQueryHelper() { m_aResults.clear(); #if OSL_DEBUG_LEVEL > 0 - m_oThreadID = osl_getThreadIdentifier(NULL); + m_oThreadID = osl::Thread::getCurrentIdentifier(); #endif } |