[lldb/test] Avoid the socket "pump" thread
authorPavel Labath <pavel@labath.sk>
Mon, 30 Nov 2020 08:05:54 +0000 (09:05 +0100)
committerPavel Labath <pavel@labath.sk>
Mon, 30 Nov 2020 08:07:45 +0000 (09:07 +0100)
commitb6e04ac5aa881c1fbb66da884b04e48dfb102474
treee390af6ef5647170647a0defbe67f2018b9ae1a4
parent62195b75481890f3d86422710338a15bfbc57bcf
[lldb/test] Avoid the socket "pump" thread

A separate thread is not necessary, as we can do its work on the main
thread, while waiting for the packet to arrive. This makes the code
easier to understand and debug (other simplifications are possible too,
but I'll leave that for separate patches). The new implementation also
avoids busy waiting.
lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
lldb/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py