BloombergLP::bslmt::ThreadUtil::getThreadName

Load the name of the current thread into the specified string.

Synopsis

Declared in <bslmt_threadutil.h>

static
void
getThreadName(bsl::string* threadName);

Description

Load the name of the current thread into the specified *threadName. Note that this method clears *threadName on platforms other than Linux, Solaris, Darwin, and Windows.

Parameters

NameDescription
threadNamereceives the current thread's name