PicoScenes API Docs
 
Loading...
Searching...
No Matches
SystemTools::Thread Namespace Reference

Functions

std::string getThreadName (uint64_t threadId)
 Gets the name of a thread given its ID.
 
void setThreadName (uint64_t threadId, const std::string &threadName)
 Sets the name of a thread given its ID.
 
std::string getCurrentThreadName ()
 Gets the name of the current thread.
 
void setName4CurrentThread (const std::string &threadName)
 Sets the name of the current thread.
 
uint64_t getCurrentThreadId ()
 Gets the ID of the current thread.
 

Function Documentation

◆ getCurrentThreadId()

uint64_t SystemTools::Thread::getCurrentThreadId ( )

Gets the ID of the current thread.

Returns
The ID of the current thread.

◆ getCurrentThreadName()

std::string SystemTools::Thread::getCurrentThreadName ( )

Gets the name of the current thread.

Returns
The name of the current thread.

◆ getThreadName()

std::string SystemTools::Thread::getThreadName ( uint64_t  threadId)

Gets the name of a thread given its ID.

Parameters
threadIdThe thread ID.
Returns
The name of the thread.

◆ setName4CurrentThread()

void SystemTools::Thread::setName4CurrentThread ( const std::string &  threadName)

Sets the name of the current thread.

Parameters
threadNameThe name to set for the current thread.

◆ setThreadName()

void SystemTools::Thread::setThreadName ( uint64_t  threadId,
const std::string &  threadName 
)

Sets the name of a thread given its ID.

Parameters
threadIdThe thread ID.
threadNameThe name to set for the thread.