summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-15 15:01:16 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-07-16 10:38:42 +0300
commit4a1a7937ae795b46c885fd3edf871fe8cbb2468e (patch)
treebcfd0c424e67d876ed5a61d30eaafede2ad116a5 /include
parent5c037f4745e5a9a3c5f5d050c59d39e3f763bb5a (diff)
downloadqtlocation-mapboxgl-4a1a7937ae795b46c885fd3edf871fe8cbb2468e.tar.gz
[core] Move set/get thread names to platform::
Android needs its own implementation.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/platform/platform.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/platform/platform.hpp b/include/mbgl/platform/platform.hpp
index 59ba7f97f3..cc8327c470 100644
--- a/include/mbgl/platform/platform.hpp
+++ b/include/mbgl/platform/platform.hpp
@@ -14,6 +14,12 @@ std::string uppercase(const std::string &string);
// Lowercase a string, potentially using platform-specific routines.
std::string lowercase(const std::string &string);
+// Gets the name of the current thread.
+std::string getCurrentThreadName();
+
+// Set the name of the current thread, truncated at 15.
+void setCurrentThreadName(const std::string& name);
+
// Makes the current thread low priority.
void makeThreadLowPriority();