Get the name of the given thread, or nothing if an error occurs or the functionality is not available.

Synopsis

Declared in <folly/system/ThreadName.h>

Optional<std::string>
getThreadName(std::thread::id tid);

Return Value

The name of the given thread, or nothing on error.

Parameters

Name

Description

tid

Thread id

Created with MrDocs