BloombergLP::bslmt::ThreadUtilImpl<Platform::PosixThreads>::getThreadName

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

Synopsis

Declared in <bslmt_threadutilimpl_pthread.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 all platforms other than Linux and Darwin.

Parameters

NameDescription
threadNamereceives the current thread's name