diff options
Diffstat (limited to 'src/mbgl/util/thread_context.hpp')
-rw-r--r-- | src/mbgl/util/thread_context.hpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/mbgl/util/thread_context.hpp b/src/mbgl/util/thread_context.hpp index bd591e88a5..9c00ef25cf 100644 --- a/src/mbgl/util/thread_context.hpp +++ b/src/mbgl/util/thread_context.hpp @@ -1,9 +1,7 @@ #ifndef MBGL_UTIL_THREAD_CONTEXT #define MBGL_UTIL_THREAD_CONTEXT -#include <cstdint> #include <string> -#include <thread> namespace mbgl { namespace util { @@ -13,25 +11,11 @@ enum class ThreadPriority : bool { Low, }; -enum class ThreadType : uint8_t { - Main, - Map = Main, - Worker, - Unknown, -}; - struct ThreadContext { public: - ThreadContext(const std::string& name, ThreadType type, ThreadPriority priority); - - static void Set(ThreadContext* context); - - static bool currentlyOn(ThreadType type); - static std::string getName(); - static ThreadPriority getPriority(); + ThreadContext(const std::string& name, ThreadPriority priority = ThreadPriority::Regular); std::string name; - ThreadType type; ThreadPriority priority; }; |