Define RCPPUTILS_TSA_GUARDED_BY

Define Documentation

RCPPUTILS_TSA_GUARDED_BY(x)

Attribute on data members, which declares that the data member is protected by the given capability.

Read operations on the data require shared access, while write operations require exclusive access. https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#guarded-by-c-and-pt-guarded-by-c