HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraceThreadId Class Reference

#include <threads.h>

Public Member Functions

TRACE_API TraceThreadId ()
 
TRACE_API TraceThreadId (const std::string &id)
 Constructor which creates an identifier from id. More...
 
const std::stringToString () const
 Returns the string representation of the id. More...
 
TRACE_API bool operator== (const TraceThreadId &) const
 Equality operator. More...
 
TRACE_API bool operator< (const TraceThreadId &) const
 Less than operator. More...
 

Detailed Description

This class represents an identifier for a thread.

Definition at line 40 of file threads.h.

Constructor & Destructor Documentation

TRACE_API TraceThreadId::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.

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

Constructor which creates an identifier from id.

Member Function Documentation

TRACE_API bool TraceThreadId::operator< ( const TraceThreadId ) const

Less than operator.

TRACE_API bool TraceThreadId::operator== ( const TraceThreadId ) const

Equality operator.

const std::string& TraceThreadId::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: