Get the name of the current thread.

Synopsis

Declared in <llvm/Support/Threading.h>

void
get_thread_name(SmallVectorImpl<char>& Name);

Description

The level of support for getting a thread's name varies wildly across operating systems, and it is not even guaranteed that if you can successfully set a thread's name that you can later get it back. This function is intended for diagnostic purposes, and as with setting a thread's name no indication of whether the operation succeeded or failed is returned.

Return Value

the name of the current thread.

Parameters

Name

Description

Name

Buffer that receives the thread name on success.

Created with MrDocs