labath added a comment.

I would prefer the unique_lock idea also. Lamdas make the code look ugly.

Alternatively, we could start using thread safety annotations 
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html, and let clang do the 
checking for us. I think a number of places could benefit from those. Not 
saying this is the best example, but since we're already discussing it...


Repository:
  rL LLVM

https://reviews.llvm.org/D35083



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to