| Index: base/threading/platform_thread_fuchsia.cc
|
| diff --git a/base/threading/platform_thread_fuchsia.cc b/base/threading/platform_thread_fuchsia.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0eae93a8baffab48464ce37f6ff528ba8172d57c
|
| --- /dev/null
|
| +++ b/base/threading/platform_thread_fuchsia.cc
|
| @@ -0,0 +1,51 @@
|
| +// Copyright 2017 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 "base/threading/platform_thread.h"
|
| +
|
| +#include "base/threading/platform_thread_internal_posix.h"
|
| +
|
| +namespace base {
|
| +
|
| +namespace internal {
|
| +
|
| +// TODO(scottmg): Port.
|
| +const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = {
|
| + {ThreadPriority::BACKGROUND, 10},
|
| + {ThreadPriority::NORMAL, 0},
|
| + {ThreadPriority::DISPLAY, -8},
|
| + {ThreadPriority::REALTIME_AUDIO, -10},
|
| +};
|
| +
|
| +bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) {
|
| + // TODO(scottmg): Port.
|
| + return false;
|
| +}
|
| +
|
| +bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) {
|
| + // TODO(scottmg): Port.
|
| + return false;
|
| +}
|
| +
|
| +} // namespace internal
|
| +
|
| +void InitThreading() {
|
| + // TODO(scottmg): Port.
|
| +}
|
| +
|
| +void TerminateOnThread() {
|
| + // TODO(scottmg): Port.
|
| +}
|
| +
|
| +size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
|
| + // TODO(scottmg): Port.
|
| + return 0;
|
| +}
|
| +
|
| +// static
|
| +void PlatformThread::SetName(const std::string& name) {
|
| + // TODO(scottmg): Port.
|
| +}
|
| +
|
| +} // namespace base
|
|
|