diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-16 13:48:33 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-15 09:56:18 -0700 |
commit | 6e78eabfff75579286ab23cbde8a36fba061ca1d (patch) | |
tree | 2437392712213f97c0326cce8691a6944fb72734 /src/mbgl/util/thread_context.hpp | |
parent | 253a007d99c2079b95d5c6d11715e16815067e16 (diff) | |
download | qtlocation-mapboxgl-6e78eabfff75579286ab23cbde8a36fba061ca1d.tar.gz |
[core] Clean up ThreadContext vestiges
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; }; |