sanitizer_common: rename Mutex to MutexState
authorDmitry Vyukov <dvyukov@google.com>
Sun, 11 Jul 2021 12:17:52 +0000 (14:17 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 12 Jul 2021 09:23:46 +0000 (11:23 +0200)
commit41ba96f53127902ede26606e6f15a053b5f9c096
treed32e3c51709db1812bcf375ad2493348b226582e
parent10f5e08a7124d2efb5b3a58a041363dbe291fefd
sanitizer_common: rename Mutex to MutexState

We have 3 different mutexes (RWMutex, BlockingMutex __tsan::Mutex),
each with own set of downsides. I want to unify them under a name Mutex.
But it will conflict with Mutex in the deadlock detector,
which is a way too generic name. Rename it to MutexState.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D105773
compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector2.cpp
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp