Set the name of the current thread.
Synopsis
Declared in <llvm/Support/Threading.h>
void
set_thread_name(Twine const& Name);
Description
Setting a thread's name can be helpful for enabling useful diagnostics under a debugger or when logging. The level of support for setting a thread's name varies wildly across operating systems, and we only make a best effort to perform the operation on supported platforms. No indication of success or failure is returned.
Parameters
Name |
Description |
Name |
Diagnostic name to assign to the calling thread. |
Created with MrDocs