8#ifndef PXR_BASE_TRACE_THREADS_H
9#define PXR_BASE_TRACE_THREADS_H
12#include "pxr/base/trace/api.h"
16PXR_NAMESPACE_OPEN_SCOPE
34 const std::string&
ToString()
const {
return _id; }
49PXR_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.