blob: 00c368c6ab041a179c096a64fb6d7da7fbcf4fac [file] [log] [blame]
Kate Stoneb9c1b512016-09-06 20:57:50 +00001//===-- ThreadInfo.h -----------------------------------------------*- C++
2//-*-===//
Jason Molenda705b1802014-06-13 02:37:02 +00003//
Chandler Carruth2946cd72019-01-19 08:50:56 +00004// 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 Molenda705b1802014-06-13 02:37:02 +00007//
8//===----------------------------------------------------------------------===//
9
10#ifndef __ThreadInfo_h__
11#define __ThreadInfo_h__
12
13namespace ThreadInfo {
14
15class QoS {
16public:
Kate Stoneb9c1b512016-09-06 20:57:50 +000017 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 Molenda705b1802014-06-13 02:37:02 +000022};
Jason Molenda705b1802014-06-13 02:37:02 +000023};
24
25#endif // __ThreadInfo_h__