File indexing completed on 2026-05-10 08:42:56
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_TARGET_TIMEOUTRESUMEALL_H
0010 #define LLDB_TARGET_TIMEOUTRESUMEALL_H
0011
0012 #include "lldb/Target/ThreadPlanSingleThreadTimeout.h"
0013
0014 namespace lldb_private {
0015
0016
0017
0018
0019
0020 class TimeoutResumeAll {
0021 public:
0022 TimeoutResumeAll(Thread &thread)
0023 : m_thread(thread),
0024 m_timeout_info(
0025 std::make_shared<ThreadPlanSingleThreadTimeout::TimeoutInfo>()) {}
0026
0027 void PushNewTimeout() {
0028 ThreadPlanSingleThreadTimeout::PushNewWithTimeout(m_thread, m_timeout_info);
0029 }
0030
0031 void ResumeWithTimeout() {
0032 ThreadPlanSingleThreadTimeout::ResumeFromPrevState(m_thread,
0033 m_timeout_info);
0034 }
0035
0036 private:
0037 Thread &m_thread;
0038 ThreadPlanSingleThreadTimeout::TimeoutInfoSP m_timeout_info;
0039 };
0040
0041 }
0042
0043 #endif