1 // Copyright 2018 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/task/thread_pool/service_thread.h" 6 7 #include "base/debug/alias.h" 8 9 namespace base { 10 namespace internal { 11 ServiceThread()12ServiceThread::ServiceThread() : Thread("ThreadPoolServiceThread") {} 13 Run(RunLoop * run_loop)14NOINLINE void ServiceThread::Run(RunLoop* run_loop) { 15 Thread::Run(run_loop); 16 // Inhibit tail calls of Run and inhibit code folding. 17 const int line_number = __LINE__; 18 base::debug::Alias(&line_number); 19 } 20 21 } // namespace internal 22 } // namespace base 23