da-viper wrote:

I am thinking in the long run, we could switch to a 
[queue](https://docs.python.org/3/library/queue.html) system. where we write to 
all events to a queue. and just pop with a timeout the events from the top of 
the queue. This way we don't have to share the `ConditionVariable` with the 
`read thread`. 

This can also apply to `sending and receiving requests`, and have a 
pending_request dictionary `Dict[request_seq, Queue]` and only poll for request 
we need.   using `pending_requests[seq].get()` 

https://github.com/llvm/llvm-project/pull/179689
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to