On 05/02/2021 00:38, Jorge Gorbe Moya wrote:
Wouldn't it be preferable to try_lock in GetDescription (which is the one currently acquiring the mutex) instead?

I'd be uncomfortable with a function like GetDescription "randomly" doing nothing (returning an empty string, or whatever). OTOH, while it's definitely not ideal, I think I could live with ReportError not reporting anything (or skipping the description, or something) under some circumstances.

That said, I like both Greg's and Raphael's ideas on how to fix this (assuming they work)...

pl
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to