Set the name of the current thread to the specified name.
Synopsis
Declared in <bslmt_threadutil.h>
static
void
setThreadName(bslstl::StringRef const& threadName);
Description
Set the name of the current thread to the specified threadName. On platforms other than Linux, Solaris, Darwin and Windows this method has no effect. Note that on those two platforms threadName will be truncated to a length of 15 bytes, not including the terminating '0'.
Parameters
Name |
Description |
threadName |
new name for the current thread |
Created with MrDocs