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