Hello, <div><br></div><div>I would like to add one more function attribute: "ThreadSafety".</div><div>Functions with this attribute will be instrumented by run-time thread-safety analysis tools (e.g. with ThreadSanitizer).</div>
<div>This is similar to "AddressSafety" attribute used by AddressSanitizer (and SAFECode?).</div><div><br></div>Clang already has the attribute "__attribute__((no_thread_safety_analysis))" which is used to disable static thread-safety analysis. <div>
<a href="http://clang.llvm.org/docs/LanguageExtensions.html#threadsafety">http://clang.llvm.org/docs/LanguageExtensions.html#threadsafety</a><br></div><div>In a separate change we will teach clang to unset ThreadSafety when no_thread_safety_analysis is present. </div>
<div>(exactly as we do for no_address_safety_analysis and AddressSafety)</div><div><br></div><div>Please review. </div><div><br></div><div>Thanks, </div><div><br></div><div>--kcc </div><div><br></div><div><a href="http://codereview.appspot.com/5828043">http://codereview.appspot.com/5828043</a><br>
</div><div><br></div><div><br></div>