summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-01-31 17:01:12 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-06 23:54:19 +0200
commit4be2fa4f9af29cfad869412d2d794964554d4eba (patch)
tree94d2b3f93457242930f43a2171714c5ce06634df /include
parent5789faf11ae2a740927bce599a209883a78b113e (diff)
downloadqtlocation-mapboxgl-4be2fa4f9af29cfad869412d2d794964554d4eba.tar.gz
[core] Add platform::setCurrentThreadPriority(double)
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/platform.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/util/platform.hpp b/include/mbgl/util/platform.hpp
index 3544659740..917b98483d 100644
--- a/include/mbgl/util/platform.hpp
+++ b/include/mbgl/util/platform.hpp
@@ -22,5 +22,9 @@ void setCurrentThreadName(const std::string& name);
// Makes the current thread low priority.
void makeThreadLowPriority();
+// Sets priority of a current thread. Platform implementation
+// must validate provided value.
+void setCurrentThreadPriority(double priority);
+
} // namespace platform
} // namespace mbgl