Chromium Code Reviews| Index: runtime/vm/thread_pool.cc |
| diff --git a/runtime/vm/thread_pool.cc b/runtime/vm/thread_pool.cc |
| index d5472a661001541f0d95bb3d2474b173ef3e7d0d..ca2e4bf478a83d1645ee5184826a3e31d4dde029 100644 |
| --- a/runtime/vm/thread_pool.cc |
| +++ b/runtime/vm/thread_pool.cc |
| @@ -333,7 +333,9 @@ void ThreadPool::Worker::StartThread() { |
| ASSERT(task_ != NULL); |
| } |
| #endif |
| - int result = OSThread::Start(&Worker::Main, reinterpret_cast<uword>(this)); |
| + int result = OSThread::Start("Dart ThreadPool Worker", |
| + &Worker::Main, |
| + reinterpret_cast<uword>(this)); |
| if (result != 0) { |
| FATAL1("Could not start worker thread: result = %d.", result); |
| } |
| @@ -417,9 +419,6 @@ void ThreadPool::Worker::Shutdown() { |
| // static |
| void ThreadPool::Worker::Main(uword args) { |
| - Thread::EnsureInit(); |
| - Thread* thread = Thread::Current(); |
| - thread->set_name("Dart ThreadPool Worker"); |
| Worker* worker = reinterpret_cast<Worker*>(args); |
| ThreadId id = OSThread::GetCurrentThreadId(); |
| ThreadJoinId join_id = OSThread::GetCurrentThreadJoinId(); |
|
zra
2015/11/16 20:12:28
In the future on Windows we might want to ensure t
siva
2015/11/17 20:52:25
Changed this to os_thread->Id() and os_thread->Joi
|