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 CanSetThreadTypeToRealtimeAudio()11bool CanSetThreadTypeToRealtimeAudio() { 12 return false; 13 } 14 SetCurrentThreadTypeForPlatform(ThreadType thread_type,MessagePumpType pump_type_hint)15bool SetCurrentThreadTypeForPlatform(ThreadType thread_type, 16 MessagePumpType pump_type_hint) { 17 return false; 18 } 19 20 std::optional<ThreadPriorityForTest> GetCurrentThreadPriorityForPlatformForTest()21GetCurrentThreadPriorityForPlatformForTest() { 22 return std::nullopt; 23 } 24 } // namespace internal 25 26 // static SetName(const std::string & name)27void PlatformThreadBase::SetName(const std::string& name) { 28 SetNameCommon(name); 29 } 30 31 } // namespace base