Bitcoin ABC 0.30.5
P2P Digital Currency
Functions | Variables
threadnames.cpp File Reference
#include <util/threadnames.h>
#include <thread>
Include dependency graph for threadnames.cpp:

Go to the source code of this file.

Functions

static void SetThreadName (const char *name)
 Set the thread's name at the process level. More...
 
static void SetInternalName (std::string name)
 Set the in-memory internal name for this thread. More...
 

Variables

static thread_local std::string g_thread_name
 

Function Documentation

◆ SetInternalName()

static void SetInternalName ( std::string  name)
static

Set the in-memory internal name for this thread.

Does not affect the process name.

Definition at line 44 of file threadnames.cpp.

Here is the caller graph for this function:

◆ SetThreadName()

static void SetThreadName ( const char *  name)
static

Set the thread's name at the process level.

Does not affect the internal name.

Definition at line 24 of file threadnames.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ g_thread_name

thread_local std::string g_thread_name
static

Definition at line 38 of file threadnames.cpp.