tsan: rename deadlock detector Mutex to UserMutex

It conflicts with sanitizer_common Mutex.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107053
This commit is contained in:
Dmitry Vyukov 2021-07-29 12:01:52 +02:00
parent 8bf0a40608
commit b8f4232823
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace __dsan {
typedef DDFlags Flags;
struct Mutex {
struct UserMutex {
DDMutex dd;
};
@ -37,7 +37,7 @@ struct Callback final : public DDCallback {
u32 Unwind() override;
};
typedef AddrHashMap<Mutex, 31051> MutexHashMap;
typedef AddrHashMap<UserMutex, 31051> MutexHashMap;
struct Context {
DDetector *dd;