Function amdinfer::util::setThreadName(const char *)

Function Documentation

inline void amdinfer::util::setThreadName(const char *name)

Attempt to set the calling thread’s name. Note, this may or may not succeed. If renaming is not possible, it should silently fail without error. There is some discussion on SO about a cross-platform implementation.

Parameters

name – Name to set to the thread. If it is >16 bytes, it is silently truncated.