Define RCPPUTILS_TSA_SCOPED_CAPABILITY

Define Documentation

RCPPUTILS_TSA_SCOPED_CAPABILITY

Attribute on classes that implement RAII-style locking, in which a capability is acquired in the constructor, and released in the destructor.

Such classes require special handling because the constructor and destructor refer to the capability via different names; see the MutexLocker class in mutex.h, at: https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#scoped-capability