Loading...
Searching...
No Matches
TraceThreadId Class Reference

This class represents an identifier for a thread. More...

#include <threads.h>

Public Member Functions

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.
 

Detailed Description

This class represents an identifier for a thread.

Definition at line 40 of file threads.h.

Constructor & Destructor Documentation

◆ TraceThreadId() [1/2]

TRACE_API TraceThreadId ( )

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]

TRACE_API TraceThreadId ( const std::string &  id)
explicit

Constructor which creates an identifier from id.

Member Function Documentation

◆ operator<()

TRACE_API bool operator< ( const TraceThreadId ) const

Less than operator.

◆ operator==()

TRACE_API bool operator== ( const TraceThreadId ) const

Equality 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: