summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/lsan/lsan_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_thread.cc')
-rw-r--r--compiler-rt/lib/lsan/lsan_thread.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan_thread.cc b/compiler-rt/lib/lsan/lsan_thread.cc
index 4404c8cc51d..a25aff37996 100644
--- a/compiler-rt/lib/lsan/lsan_thread.cc
+++ b/compiler-rt/lib/lsan/lsan_thread.cc
@@ -155,4 +155,9 @@ void UnlockThreadRegistry() {
thread_registry->Unlock();
}
+ThreadRegistry *GetThreadRegistryLocked() {
+ thread_registry->CheckLocked();
+ return thread_registry;
+}
+
} // namespace __lsan
OpenPOWER on IntegriCloud