dmcardle wrote:

@AaronBallman, please take a look!

What do you think of this approach? I suppose it might be even better to 
enforce that the function's return type is `bool`, which would align with the 
[ThreadSafetyAnalysis 
documentation](https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#try-acquire-bool-try-acquire-shared-bool).

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

Reply via email to