diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-15 15:01:16 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-16 10:38:42 +0300 |
commit | 4a1a7937ae795b46c885fd3edf871fe8cbb2468e (patch) | |
tree | bcfd0c424e67d876ed5a61d30eaafede2ad116a5 /include/mbgl/platform/platform.hpp | |
parent | 5c037f4745e5a9a3c5f5d050c59d39e3f763bb5a (diff) | |
download | qtlocation-mapboxgl-4a1a7937ae795b46c885fd3edf871fe8cbb2468e.tar.gz |
[core] Move set/get thread names to platform::
Android needs its own implementation.
Diffstat (limited to 'include/mbgl/platform/platform.hpp')
-rw-r--r-- | include/mbgl/platform/platform.hpp | 6 |
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(); |