Is there a quasi-standard set of attributes to annotate thread safety, immutability etc.?
<p>Except for a blog post here and there, describing the custom attributes someone created, but that do not seem to get any traction - like one describing how to <a href="http://blogs.msdn.com/b/kevinpilchbisson/archive/2007/11/20/enforcing-immutability-in-code.aspx">enforce immutability</a>, another one on <a href="http://larryparkerdotnet.wordpress.com/2009/08/25/documenting-thread-safety/">Documenting Thread Safety</a>, modeling the attributes after <a href="http://jcip.net/">JCIP annotations</a> - is there any standard emerging? Anything MS might be planning for the future?</p>

<p>This is something that should be standard, if there's to be any chance of interoperability between libraries concurrency-wise. Both for documentation purposes, and also to feed static / dynamic test tools.</p>

<p>If MS isn't doing anything in that direction, it could be done on CodePlex - but I couldn't find anything there, either.</p>

<p>&lt;opinion&gt;Concurrency and thread safety are really hard in imperative and object-languages like C# and Java, we should try to tame it, until we hopefully switch to more appropriate languages.&lt;/opinion&gt;</p>
