diff options
Diffstat (limited to 'CommonLibs/Threads.cpp')
-rw-r--r-- | CommonLibs/Threads.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CommonLibs/Threads.cpp b/CommonLibs/Threads.cpp index d8dab57..b3ff52f 100644 --- a/CommonLibs/Threads.cpp +++ b/CommonLibs/Threads.cpp @@ -32,6 +32,8 @@ #include "Timeval.h" #include "Logger.h" +#include <osmocom/core/thread.h> + using namespace std; #ifndef HAVE_ATOMIC_OPS @@ -108,7 +110,7 @@ void Signal::wait(Mutex& wMutex, unsigned timeout) const void set_selfthread_name(const char *name) { pthread_t selfid = pthread_self(); - pid_t tid = my_gettid(); + pid_t tid = osmo_gettid(); if (pthread_setname_np(selfid, name) == 0) { LOG(INFO) << "Thread "<< selfid << " (task " << tid << ") set name: " << name; } else { |