[darwin] Assign threads more specific names
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
24a00231f3
commit
88b2fbd4ec
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user