[lldb/Debugger] Rename ExecuteIOHandlers to RunIOHandlers (NFC)

This improves consistency among the related methods.
This commit is contained in:
Jonas Devlieghere 2020-01-16 16:45:18 -08:00
parent 8ef57f3e3f
commit 2671df9bd6
3 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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 {};
} }

View File

@ -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();