1*061da546Spatrick //===-- ThreadInfo.h -----------------------------------------------*- C++ 2*061da546Spatrick //-*-===// 3*061da546Spatrick // 4*061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5*061da546Spatrick // See https://llvm.org/LICENSE.txt for license information. 6*061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7*061da546Spatrick // 8*061da546Spatrick //===----------------------------------------------------------------------===// 9*061da546Spatrick 10*061da546Spatrick #ifndef __ThreadInfo_h__ 11*061da546Spatrick #define __ThreadInfo_h__ 12*061da546Spatrick 13*061da546Spatrick namespace ThreadInfo { 14*061da546Spatrick 15*061da546Spatrick class QoS { 16*061da546Spatrick public: 17*061da546Spatrick QoS() : constant_name(), printable_name(), enum_value(UINT32_MAX) {} 18*061da546Spatrick bool IsValid() { return enum_value != UINT32_MAX; } 19*061da546Spatrick std::string constant_name; 20*061da546Spatrick std::string printable_name; 21*061da546Spatrick uint32_t enum_value; 22*061da546Spatrick }; 23*061da546Spatrick }; 24*061da546Spatrick 25*061da546Spatrick #endif // __ThreadInfo_h__ 26