This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
clang thread safety annotations
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 5 Nov 2015 23:52:20 +0000 (18:52 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 23 Nov 2015 11:55:12 +0000 (06:55 -0500)
commit3baee7ccba467a3ddc1cb6bfb1a4cabd40cd7424
treecd997ea09534ba203a372e75ccfcdde402a439da
parent04106f2e5c6e8162bd22fd9c7505096116e483cd
clang thread safety annotations

http://clang.llvm.org/docs/ThreadSafetyAnalysis.html

Static (compile-time) annotations for declaring the multithreaded
behavior of functions, variables, and capabilities (like mutexes).
Available since about clang 3.5.

./Configure -des -Dusedevel -Dusethreads -Dcc=clang -Accflags='-Wthread-safety'

clang -Wthread-safety then checks the validity of the annotations.
perl.h
thread.h
util.c