Function gpa::concurrent::util::GetThreadName

Function Documentation

char const *gpa::concurrent::util::GetThreadName(char *name, size_t nameLen)

Obtain name of current thread (if platform provides such information).

Parameters
  • name -- Buffer to store the thread name.

  • nameLen -- Length, in bytes, of name buffer.

Returns

Pointer to beginning of name buffer, or nullptr if the name could not be retrieved.