diff --git a/src/node_platform.cc b/src/node_platform.cc index 2780b2ac4f996c..0478e30906930d 100644 --- a/src/node_platform.cc +++ b/src/node_platform.cc @@ -22,9 +22,9 @@ using v8::TracingController; namespace { -static void WorkerThreadMain(void* data) { +static void PlatformWorkerThread(void* data) { TRACE_EVENT_METADATA1("__metadata", "thread_name", "name", - "BackgroundTaskRunner"); + "PlatformWorkerThread"); TaskQueue* pending_worker_tasks = static_cast*>(data); while (std::unique_ptr task = pending_worker_tasks->BlockingPop()) { task->Run(); @@ -37,7 +37,7 @@ static void WorkerThreadMain(void* data) { WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int thread_pool_size) { for (int i = 0; i < thread_pool_size; i++) { std::unique_ptr t { new uv_thread_t() }; - if (uv_thread_create(t.get(), WorkerThreadMain, + if (uv_thread_create(t.get(), PlatformWorkerThread, &pending_worker_tasks_) != 0) { break; }