Hi Ben,

> Details:
> https://clang.llvm.org/docs/ThreadSafetyAnalysis.html

Thank you very much for the pointer!

This convinces me to use a macro that may expand into __attribute__(...)
annotations at some point, rather than a comment.

There is also the 'race' annotation in the glibc manual, discussed in
https://sourceware.org/bugzilla/show_bug.cgi?id=25158

Regarding the POSIX functions, there's also a blog post by Simon:
https://blog.josefsson.org/2009/06/23/thread-safe-functions/

Bruno


Reply via email to