#include "base/threading/platform_thread.h"
#include "base/threading/thread_id_name_manager.h"
#include "base/task/current_thread.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"
#if BUILDFLAG(IS_FUCHSIA)
#include "base/fuchsia/scheduler.h"
#endif
namespace base {
namespace {
ABSL_CONST_INIT thread_local ThreadType current_thread_type = …;
}
void PlatformThreadBase::SetCurrentThreadType(ThreadType thread_type) { … }
ThreadType PlatformThreadBase::GetCurrentThreadType() { … }
std::optional<TimeDelta> PlatformThreadBase::GetThreadLeewayOverride() { … }
void PlatformThreadBase::SetNameCommon(const std::string& name) { … }
namespace internal {
void SetCurrentThreadType(ThreadType thread_type,
MessagePumpType pump_type_hint) { … }
}
}