summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_win.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-11 15:45:20 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-11 15:45:20 +0000
commitce700979f644c790c2d9d80f5cc2a1ada0380284 (patch)
treed6976fafd76beffd00e29ec8005fa20377e51132 /lib/sanitizer_common/sanitizer_win.cc
parentc1b73e84db2f9f62633ee52b13cd1f83ef2fbe99 (diff)
downloadcompiler-rt-ce700979f644c790c2d9d80f5cc2a1ada0380284.tar.gz
compiler-rt-ce700979f644c790c2d9d80f5cc2a1ada0380284.tar.bz2
compiler-rt-ce700979f644c790c2d9d80f5cc2a1ada0380284.tar.xz
[Sanitizer] Implement BlockingMutex::CheckLocked()
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176805 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_win.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc
index 40af4e37..7b540a21 100644
--- a/lib/sanitizer_common/sanitizer_win.cc
+++ b/lib/sanitizer_common/sanitizer_win.cc
@@ -291,6 +291,10 @@ void BlockingMutex::Unlock() {
LeaveCriticalSection((LPCRITICAL_SECTION)opaque_storage_);
}
+void BlockingMutex::CheckLocked() {
+ CHECK_EQ(owner_, GetThreadSelf());
+}
+
} // namespace __sanitizer
#endif // _WIN32