JDevlieghere wrote:

> it doesn't e.g. prevent someone from printing something in the middle of a 
> statusline update.

Technically it does, because the statusline is printed as a single call to 
write, but I agree that's fragile and one could argue that works by accident 
rather than by design. I really like the idea of introducing an RAII object as 
it (1) makes the locking more explicit and (2) makes it easy to do the right 
thing and hard to do the wrong thing. 

https://github.com/llvm/llvm-project/pull/126630
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to