blob: cad9a8dd07d58429a0c789ba60bc7a55a488d7af [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/scheduler/public/worker_pool.h"
#include "base/location.h"
#include "base/task/post_task.h"
namespace blink {
namespace worker_pool {
void PostTask(const base::Location& location, CrossThreadOnceClosure closure) {
PostTaskWithTraits(location,
{base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
std::move(closure));
}
void PostTaskWithTraits(const base::Location& location,
const base::TaskTraits& traits,
CrossThreadOnceClosure closure) {
base::PostTaskWithTraits(location, traits,
ConvertToBaseOnceCallback(std::move(closure)));
}
} // namespace worker_pool
} // namespace blink