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/uno | |
parent | bcce27d2832a2b098a42cbbd365df35948b9d0ac (diff) |
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'cppu/source/uno')
-rw-r--r-- | cppu/source/uno/EnvStack.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx index 22d7bd992909..59da613a0623 100644 --- a/cppu/source/uno/EnvStack.cxx +++ b/cppu/source/uno/EnvStack.cxx @@ -25,6 +25,7 @@ #include "rtl/instance.hxx" #include "osl/thread.h" +#include "osl/thread.hxx" #include "osl/mutex.hxx" #include <boost/unordered_map.hpp> @@ -69,7 +70,7 @@ namespace static void s_setCurrent(uno_Environment * pEnv) { - oslThreadIdentifier threadId = osl_getThreadIdentifier(NULL); + oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); osl::MutexGuard guard(s_threadMap_mutex::get()); ThreadMap &rThreadMap = s_threadMap::get(); @@ -89,7 +90,7 @@ static uno_Environment * s_getCurrent(void) { uno_Environment * pEnv = NULL; - oslThreadIdentifier threadId = osl_getThreadIdentifier(NULL); + oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); osl::MutexGuard guard(s_threadMap_mutex::get()); ThreadMap &rThreadMap = s_threadMap::get(); |