fix concurrent threads cannot set thread name on Android issue (flutter/engine#23850)

This commit is contained in:
zljj0818
2021-01-27 01:04:02 +08:00
committed by GitHub
parent 47927f8a8d
commit a18173a94b

View File

@@ -22,7 +22,7 @@ ConcurrentMessageLoop::ConcurrentMessageLoop(size_t worker_count)
for (size_t i = 0; i < worker_count_; ++i) {
workers_.emplace_back([i, this]() {
fml::Thread::SetCurrentThreadName(
std::string{"io.flutter.worker." + std::to_string(i + 1)});
std::string{"io.worker." + std::to_string(i + 1)});
WorkerMain();
});
}