Open AndreasMager opened 9 years ago
+1, sounds like a good addition.
The clang thread safety analysis calls that EXCLUDES(...)
[1]. It's especially useful when your locks aren't re-entrant, but it'd still be nice to have in Java.
[1] http://clang.llvm.org/docs/ThreadSafetyAnalysis.html#excludes
A new annotation would be nice to mark a piece of code for deadlock problems.
example: