[Lldb-commits] [lldb] [lldb] Adding pipe support to lldb_private::MainLoopWindows. (PR #145621)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 30 02:45:52 PDT 2025
================
@@ -31,6 +34,122 @@ static DWORD ToTimeout(std::optional<MainLoopWindows::TimePoint> point) {
return ceil<milliseconds>(dur).count();
}
+namespace {
+
+class PipeEvent : public MainLoopWindows::IOEvent {
+public:
+ explicit PipeEvent(HANDLE handle)
+ : IOEvent((IOObject::WaitableHandle)CreateEventW(
+ NULL, /*bManualReset=*/FALSE,
+ /*bInitialState=*/FALSE, NULL)),
+ m_handle(handle), m_ready(CreateEventW(NULL, /*bManualReset=*/FALSE,
+ /*bInitialState=*/FALSE, NULL)) {
+ assert(event && ready);
----------------
labath wrote:
```suggestion
assert(m_event && m_ready);
```
https://github.com/llvm/llvm-project/pull/145621
More information about the lldb-commits
mailing list