diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/logfile.cxx | 3 | ||||
-rw-r--r-- | sal/rtl/random.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sal/rtl/logfile.cxx b/sal/rtl/logfile.cxx index c33eb5800ae8..8bcef426710f 100644 --- a/sal/rtl/logfile.cxx +++ b/sal/rtl/logfile.cxx @@ -33,6 +33,7 @@ #include <rtl/instance.hxx> #include <sal/log.hxx> #include "osl/thread.h" +#include "osl/thread.hxx" #include <algorithm> @@ -207,7 +208,7 @@ extern "C" void SAL_CALL rtl_logfile_longTrace(char const * format, ...) { init(); if (g_buffer != 0) { sal_uInt32 time = osl_getGlobalTimer(); - oslThreadIdentifier threadId = osl_getThreadIdentifier(0); + oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); va_list args; va_start(args, format); { diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index 87c5bfc42e30..e8e77096288d 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -19,6 +19,7 @@ #include <sal/types.h> #include <osl/thread.h> +#include <osl/thread.hxx> #include <osl/time.h> #include <rtl/alloc.h> #include <rtl/digest.h> @@ -128,7 +129,7 @@ static sal_Bool __rtl_random_initPool (RandomPool_Impl *pImpl) __rtl_random_seedPool (pImpl, (sal_uInt8*)&rd, sizeof(rd)); */ - id = osl_getThreadIdentifier (NULL); + id = osl::Thread::getCurrentIdentifier(); id = RTL_RANDOM_RNG_2(RTL_RANDOM_RNG_1(id)); __rtl_random_seedPool (pImpl, (sal_uInt8*)&id, sizeof(id)); |