NUMA++ 0.11.0
Loading...
Searching...
No Matches
thread.cpp File Reference

Definition of thread functions. More...

#include <cstring>
#include <sys/prctl.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <numapp/thread.hpp>

Go to the source code of this file.

Namespaces

namespace  numapp
 

Functions

pid_t numapp::thisThread::GetThreadId () noexcept
 Query the thread id "TID" of the current thread.
 
void numapp::thisThread::SetThreadName (std::string_view thread_name, std::error_code &ec) noexcept
 Set thread name for current thread.
 
void numapp::thisThread::SetThreadName (std::string_view thread_name)
 Set thread name for current thread (throwing version).
 
std::string numapp::thisThread::GetThreadName (std::error_code &ec) noexcept
 Get name of current thread.
 
std::string numapp::thisThread::GetThreadName ()
 Get name of current thread (throwing version).
 

Detailed Description

Definition of thread functions.

Definition in file thread.cpp.