#include "third_party/blink/renderer/platform/scheduler/public/cooperative_scheduling_manager.h"
#include "base/auto_reset.h"
#include "base/run_loop.h"
#include "base/time/default_tick_clock.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/thread_specific.h"
namespace blink {
namespace scheduler {
namespace {
constexpr base::TimeDelta kNestedLoopMinimumInterval = …;
}
CooperativeSchedulingManager* CooperativeSchedulingManager::Instance() { … }
CooperativeSchedulingManager::AllowedStackScope::AllowedStackScope(
CooperativeSchedulingManager* manager)
: … { … }
CooperativeSchedulingManager::AllowedStackScope::~AllowedStackScope() { … }
CooperativeSchedulingManager::CooperativeSchedulingManager()
: … { … }
void CooperativeSchedulingManager::EnterAllowedStackScope() { … }
void CooperativeSchedulingManager::LeaveAllowedStackScope() { … }
void CooperativeSchedulingManager::SafepointSlow() { … }
void CooperativeSchedulingManager::RunNestedLoop() { … }
void CooperativeSchedulingManager::SetTickClockForTesting(
const base::TickClock* clock) { … }
}
}