25#ifndef PXR_BASE_TRACE_THREADS_H
26#define PXR_BASE_TRACE_THREADS_H
29#include "pxr/base/trace/api.h"
33PXR_NAMESPACE_OPEN_SCOPE
51 const std::string&
ToString()
const {
return _id; }
66PXR_NAMESPACE_CLOSE_SCOPE
This class represents an identifier for a thread.
TRACE_API TraceThreadId()
Constructor which creates an identifier based on std::thread_id.
TRACE_API bool operator<(const TraceThreadId &) const
Less than operator.
const std::string & ToString() const
Returns the string representation of the id.
TRACE_API bool operator==(const TraceThreadId &) const
Equality operator.
TRACE_API TraceThreadId(const std::string &id)
Constructor which creates an identifier from id.