Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame^] | 1 | //===-- ThreadInfo.h -----------------------------------------------*- C++ |
| 2 | //-*-===// |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is distributed under the University of Illinois Open Source |
| 7 | // License. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef __ThreadInfo_h__ |
| 12 | #define __ThreadInfo_h__ |
| 13 | |
| 14 | namespace ThreadInfo { |
| 15 | |
| 16 | class QoS { |
| 17 | public: |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame^] | 18 | QoS() : constant_name(), printable_name(), enum_value(UINT32_MAX) {} |
| 19 | bool IsValid() { return enum_value != UINT32_MAX; } |
| 20 | std::string constant_name; |
| 21 | std::string printable_name; |
| 22 | uint32_t enum_value; |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 23 | }; |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | #endif // __ThreadInfo_h__ |