chromium/content/utility/in_process_utility_thread.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/utility/in_process_utility_thread.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/lazy_instance.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "content/child/child_process.h"
#include "content/utility/utility_thread_impl.h"

namespace content {

// We want to ensure there's only one utility thread running at a time, as there
// are many globals used in the utility process.
static base::LazyInstance<base::Lock>::DestructorAtExit
    g_one_utility_thread_lock;

InProcessUtilityThread::InProcessUtilityThread(
    const InProcessChildThreadParams& params)
    :{}

InProcessUtilityThread::~InProcessUtilityThread() {}

void InProcessUtilityThread::Init() {}

void InProcessUtilityThread::CleanUp()
    UNLOCK_FUNCTION(g_one_utility_thread_lock.Get()) {}

void InProcessUtilityThread::InitInternal()
    EXCLUSIVE_LOCK_FUNCTION(g_one_utility_thread_lock.Get()) {}

base::Thread* CreateInProcessUtilityThread(
    const InProcessChildThreadParams& params) {}

}  // namespace content