summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-06-21 23:55:56 -0400
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-06-27 11:26:42 +0300
commit88b2fbd4ecd0b4b59e900ce743abed41d63bbf46 (patch)
tree9d3bbbb227728c9021b902b49663e46950193dc9
parent24a00231f3f6cf119e3e7e349d1b43ff36750ca9 (diff)
downloadqtlocation-mapboxgl-88b2fbd4ecd0b4b59e900ce743abed41d63bbf46.tar.gz
[darwin] Assign threads more specific names
-rw-r--r--platform/darwin/src/nsthread.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/darwin/src/nsthread.mm b/platform/darwin/src/nsthread.mm
index 6caa1be43e..458db968d8 100644
--- a/platform/darwin/src/nsthread.mm
+++ b/platform/darwin/src/nsthread.mm
@@ -15,7 +15,8 @@ std::string getCurrentThreadName() {
}
void setCurrentThreadName(const std::string& name) {
- pthread_setname_np(name.c_str());
+ std::string qualifiedName = "com.mapbox.mbgl." + name;
+ pthread_setname_np(qualifiedName.c_str());
}
void makeThreadLowPriority() {