folly::getCurrentThreadName

Equivalent to getThreadName(std::this_thread::get_id());

Synopsis

Declared in <folly/system/ThreadName.h>

Optional<std::string>
getCurrentThreadName();

Return Value

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