summaryrefslogtreecommitdiff
path: root/sal/rtl
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 /sal/rtl
parentbcce27d2832a2b098a42cbbd365df35948b9d0ac (diff)
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/logfile.cxx3
-rw-r--r--sal/rtl/random.cxx3
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));