[lldb] [Host] Refactor TerminalState

Refactor TerminalState to make the code simpler.  Move 'struct termios'
to a PImpl-style subclass.  Add an RAII interface to automatically store
and restore the state.

Differential revision: https://reviews.llvm.org/D110721
This commit is contained in:
Michał Górny committed 2021-10-01 12:53:21 +02:00
1 parent 512aa84850
commit 58b4501eea
5 files changed
+51 -81

No files matched your search

@@ -355,7 +355,6 @@ private:
PyEval_InitThreads();
}
TerminalState m_stdin_tty_state;
PyGILState_STATE m_gil_state = PyGILState_UNLOCKED;
bool m_was_already_initialized = false;
};