[Lldb-commits] [PATCH] D132578: [lldb] [Core] Use thread for Communication::Write() as well

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Sep 4 00:27:46 PDT 2022


mgorny added a comment.

Ok, so I guess I'm back the original plan of using async thread to do the packet exchanges. Right now, the rough plan is to:

1. Try to clean up / streamline the comms API a bit.
2. Introduce a wrapper between the client and the actual comms to clearly split the public packet exchange API from the actual comms. Initially, the wrapper will just call into the comm methods.
3. Add the "new" async thread to the wrapper. The actual comms will be performed by the thread, and the wrapper will communicate with it.
4. Add support for sharing the wrapper between multiple process instances, and using the comm thread from multiple processes simultaneously.

Exact details TBD. It's possible that initially I'll leave the per-process "old" async threads as well in order to reduce the diffs.


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

https://reviews.llvm.org/D132578



More information about the lldb-commits mailing list