5#ifndef RUNTIME_VM_THREAD_INTERRUPTER_H_
6#define RUNTIME_VM_THREAD_INTERRUPTER_H_
47 static constexpr intptr_t kMaxThreads = 4096;
48 static bool initialized_;
49 static bool shutdown_;
50 static bool thread_running_;
51 static bool woken_up_;
54 static intptr_t interrupt_period_;
55 static intptr_t current_wait_time_;
57 static bool InDeepSleep() {
61 static void ThreadMain(
uword parameters);
63 static void InstallSignalHandler();
65 static void RemoveSignalHandler();
static constexpr int64_t kNoTimeout
friend class ThreadInterrupterVisitIsolates
static void CleanupCurrentThreadState(void *state)
static void SetInterruptPeriod(intptr_t period)
static void * PrepareCurrentThread()
static void InterruptThread(OSThread *thread)