summaryrefslogtreecommitdiff
path: root/src/mbgl/util/thread_context.hpp
blob: a51dede404ed2be51d3d68cd68af7e376bf19e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <string>

namespace mbgl {
namespace util {

enum class ThreadPriority : bool {
    Regular,
    Low,
};

struct ThreadContext {
public:
    ThreadContext(std::string name, ThreadPriority priority = ThreadPriority::Regular);

    std::string name;
    ThreadPriority priority;
};

} // namespace util
} // namespace mbgl