This class represents an identifier for a thread.
More...
#include <threads.h>
|
TRACE_API | TraceThreadId () |
| Constructor which creates an identifier based on std::thread_id.
|
|
TRACE_API | TraceThreadId (const std::string &id) |
| Constructor which creates an identifier from id .
|
|
const std::string & | ToString () const |
| Returns the string representation of the id.
|
|
TRACE_API bool | operator== (const TraceThreadId &) const |
| Equality operator.
|
|
TRACE_API bool | operator< (const TraceThreadId &) const |
| Less than operator.
|
|
This class represents an identifier for a thread.
Definition at line 40 of file threads.h.
◆ TraceThreadId() [1/2]
Constructor which creates an identifier based on std::thread_id.
It is either"Main Thread" if this id is marked as the main thread or "Thread XXX" where XXX is the string representation of the thread id.
◆ TraceThreadId() [2/2]
Constructor which creates an identifier from id
.
◆ operator<()
◆ operator==()
◆ ToString()
const std::string & ToString |
( |
| ) |
const |
|
inline |
Returns the string representation of the id.
Definition at line 51 of file threads.h.
The documentation for this class was generated from the following file: