[darwin] Assign threads more specific names

This commit is contained in:
Jason Wray
2017-06-21 23:55:56 -04:00
committed by Thiago Marcos P. Santos
parent 24a00231f3
commit 88b2fbd4ec

View File

@@ -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() {