summaryrefslogtreecommitdiff
path: root/src/mbgl/util/thread_context.hpp
blob: 9c00ef25cf212dca57895653ccd18961038a127b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MBGL_UTIL_THREAD_CONTEXT
#define MBGL_UTIL_THREAD_CONTEXT

#include <string>

namespace mbgl {
namespace util {

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

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

    std::string name;
    ThreadPriority priority;
};

} // namespace util
} // namespace mbgl

#endif