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 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef __ThreadInfo_h__ |
| 11 | #define __ThreadInfo_h__ |
| 12 | |
| 13 | namespace ThreadInfo { |
| 14 | |
| 15 | class QoS { |
| 16 | public: |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 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; |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 22 | }; |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | #endif // __ThreadInfo_h__ |