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