diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-01-31 17:01:12 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-02-06 23:54:19 +0200 |
commit | 4be2fa4f9af29cfad869412d2d794964554d4eba (patch) | |
tree | 94d2b3f93457242930f43a2171714c5ce06634df /include | |
parent | 5789faf11ae2a740927bce599a209883a78b113e (diff) | |
download | qtlocation-mapboxgl-4be2fa4f9af29cfad869412d2d794964554d4eba.tar.gz |
[core] Add platform::setCurrentThreadPriority(double)
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/platform.hpp | 4 |
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 |