xref: /aosp_15_r20/external/cronet/base/task/thread_pool/service_thread.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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()12 ServiceThread::ServiceThread() : Thread("ThreadPoolServiceThread") {}
13 
Run(RunLoop * run_loop)14 NOINLINE 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