Skip to content

Annotate QMutex with TSAN annotations

Harald Sitter requested to merge sitter/qtbase:work/tsan into kde/5.15

The Q(Basic)Mutex fast paths are entirely inline in the caller, which means we need to annotate its operations directly or TSAN doesn't know what's going on. Also annotate QRecursiveMutex.

The tryLock code could be in principle simplified via a QScopeGuard but I didn't want to make a central class like QMutex depend on it.

[ChangeLog][QtCore][QMutex] QMutex now has annotations for ThreadSanitizer.

Change-Id: Ibb130404e63a5ec9bcef9675f9addd16a2c38b7f Reviewed-by: David Faure david.faure@kdab.com Reviewed-by: Thiago Macieira thiago.macieira@intel.com (cherry picked from commit b2233f19)

Merge request reports