[cfe-dev] Thread safety annotations for movable lock guards

Stephan Tolksdorf st at quanttec.com
Tue May 6 10:30:42 PDT 2014


Hi,

Is there a way to make clang's thread safety annotations work with 
movable lock guards (i.e. RAII classes for locking a mutex), like e.g. 
std::unique_lock? How should the move constructor of such a lock guard 
be annotated, or a factory function returning a guard?

If this is currently not supported, are there maybe any plans to support 
it in the future?

Thanks in advance for any hint!

Best regards,
   Stephan



More information about the cfe-dev mailing list