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