Joel Fernandes | 89db348 | 2023-07-19 15:49:35 | [diff] [blame] | 1 | // Copyright 2023 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 | // Description: These are stubs for NACL. |
| 5 | |
| 6 | #include "base/threading/platform_thread.h" |
| 7 | |
| 8 | namespace base { |
| 9 | namespace internal { |
| 10 | |
| 11 | bool CanSetThreadTypeToRealtimeAudio() { |
| 12 | return false; |
| 13 | } |
| 14 | |
| 15 | bool SetCurrentThreadTypeForPlatform(ThreadType thread_type, |
| 16 | MessagePumpType pump_type_hint) { |
| 17 | return false; |
| 18 | } |
| 19 | |
| 20 | absl::optional<ThreadPriorityForTest> |
| 21 | GetCurrentThreadPriorityForPlatformForTest() { |
| 22 | return absl::nullopt; |
| 23 | } |
| 24 | } // namespace internal |
| 25 | |
| 26 | // static |
| 27 | void PlatformThreadBase::SetName(const std::string& name) { |
| 28 | SetNameCommon(name); |
| 29 | } |
| 30 | |
| 31 | } // namespace base |