blob: 06a42255f05e7463eb8bd6828b7d466b955e210e [file] [log] [blame]
Gabriel Charette3fb9e4f2018-05-18 21:34:431// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Gabriel Charette52fa3ae2019-04-15 21:44:375#include "base/task/thread_pool/service_thread.h"
Gabriel Charette3fb9e4f2018-05-18 21:34:436
Gabriel Charette3fb9e4f2018-05-18 21:34:437#include "base/debug/alias.h"
Gabriel Charette3fb9e4f2018-05-18 21:34:438
9namespace base {
10namespace internal {
11
Francois Dorayaef33f342020-11-30 18:38:5712ServiceThread::ServiceThread() : Thread("ThreadPoolServiceThread") {}
Gabriel Charette3fb9e4f2018-05-18 21:34:4313
14NOINLINE void ServiceThread::Run(RunLoop* run_loop) {
Gabriel Charette3fb9e4f2018-05-18 21:34:4315 Thread::Run(run_loop);
Olivier Li19d89252020-05-13 17:57:5516 // Inhibit tail calls of Run and inhibit code folding.
17 const int line_number = __LINE__;
Gabriel Charette3fb9e4f2018-05-18 21:34:4318 base::debug::Alias(&line_number);
19}
20
Gabriel Charette3fb9e4f2018-05-18 21:34:4321} // namespace internal
22} // namespace base