forked from OSchip/llvm-project
[lldb/Debugger] Rename ExecuteIOHandlers to RunIOHandlers (NFC)
This improves consistency among the related methods.
This commit is contained in:
parent
8ef57f3e3f
commit
2671df9bd6
|
@ -309,7 +309,7 @@ public:
|
||||||
|
|
||||||
bool LoadPlugin(const FileSpec &spec, Status &error);
|
bool LoadPlugin(const FileSpec &spec, Status &error);
|
||||||
|
|
||||||
void ExecuteIOHandlers();
|
void RunIOHandlers();
|
||||||
|
|
||||||
bool IsForwardingEvents();
|
bool IsForwardingEvents();
|
||||||
|
|
||||||
|
|
|
@ -894,7 +894,7 @@ void Debugger::ClearIOHandlers() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debugger::ExecuteIOHandlers() {
|
void Debugger::RunIOHandlers() {
|
||||||
while (true) {
|
while (true) {
|
||||||
IOHandlerSP reader_sp(m_io_handler_stack.Top());
|
IOHandlerSP reader_sp(m_io_handler_stack.Top());
|
||||||
if (!reader_sp)
|
if (!reader_sp)
|
||||||
|
@ -1551,7 +1551,7 @@ void Debugger::StopEventHandlerThread() {
|
||||||
|
|
||||||
lldb::thread_result_t Debugger::IOHandlerThread(lldb::thread_arg_t arg) {
|
lldb::thread_result_t Debugger::IOHandlerThread(lldb::thread_arg_t arg) {
|
||||||
Debugger *debugger = (Debugger *)arg;
|
Debugger *debugger = (Debugger *)arg;
|
||||||
debugger->ExecuteIOHandlers();
|
debugger->RunIOHandlers();
|
||||||
debugger->StopEventHandlerThread();
|
debugger->StopEventHandlerThread();
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2943,7 +2943,7 @@ void CommandInterpreter::RunCommandInterpreter(
|
||||||
if (spawn_thread) {
|
if (spawn_thread) {
|
||||||
m_debugger.StartIOHandlerThread();
|
m_debugger.StartIOHandlerThread();
|
||||||
} else {
|
} else {
|
||||||
m_debugger.ExecuteIOHandlers();
|
m_debugger.RunIOHandlers();
|
||||||
|
|
||||||
if (auto_handle_events)
|
if (auto_handle_events)
|
||||||
m_debugger.StopEventHandlerThread();
|
m_debugger.StopEventHandlerThread();
|
||||||
|
|
Loading…
Reference in New Issue