A lightweight, comparable identifier for a thread - including the app's own main/original thread, which was never itself started via Thread and so has no Thread object of its own to name it.
More...
A lightweight, comparable identifier for a thread - including the app's own main/original thread, which was never itself started via Thread and so has no Thread object of its own to name it.
Use this when code just needs to answer "is this the same thread that did X earlier?" (eg. "is
this the main/GUI thread?"), not to own or join a thread.
Definition at line 112 of file Thread.h.