[Lldb-commits] [PATCH] Fix multiple problems of lldb-mi blocking on input monitoring and needing a return.
ki.stfu at gmail.com
Thu Feb 12 01:40:51 PST 2015
In http://reviews.llvm.org/D7529#122418, @abidh wrote:
> The real problem is that lldb-mi has a very poor design regarding threading. It is using 3 threads.
> 1. To wait on input
> 2. To process commands
> 3. To handle event.
> These problems mostly occur due to interaction of 1 & 2. I also found out that running 2 & 3 at the same time produces race condition so I have put a mutex on them so that they dont run at the same time. The signal handling in totally messed up too. I think lldb-mi should be changed to be a single threaded app (or first 2 threads should be merged at least). It will get rid of a lot of complexity and these problems.
I agree that we should merge 1st and 2nd threads.
Is there any chance that you will be working on it?
More information about the lldb-commits