File thread_safety_annotations.hpp
↰ Parent directory (include/rcpputils
)
Enable thread safety attributes only with clang+libcxx.
Definition (include/rcpputils/thread_safety_annotations.hpp
)
Detailed Description
Technically they would work with clang without libcxx, on manually-annotated thread safety primitives, but this use case causes the error of annotating against non-annotated libstdc++ types. Users that wish to annotate their threading library will need to define these macros separately for that case.
The attributes can be safely erased when compiling with other compilers.
Macro descriptions were obtained from llvm’s thread safety annotation documentation, see their documentation for more info
Includes
mutex