mgorny added inline comments.

================
Comment at: lldb/source/Core/Communication.cpp:427
   // Notify the read thread.
-  m_connection_sp->InterruptRead();
 
----------------
labath wrote:
> Have you considered putting this code (some version of it) inside 
> `InterruptRead`? Basically replacing the `select` call inside BytesAvailable 
> with something MainLoop-based ?
To be honest, I've been considering removing `InterruptRead()` entirely, now 
that the read loop is triggered by available input rather than 
read-with-timeout. However, it's still used by editline support.

That said, I'm not sure what's your idea, given that `Connection` does not have 
awareness of `Communication` that's using it. I suppose I could pass the 
`MainLoop` instance as a parameter but we'd still have to maintain a separate 
version for editline support, and we only have a single caller here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132283/new/

https://reviews.llvm.org/D132283

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to