summaryrefslogtreecommitdiff
path: root/lib/asan/asan_thread.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-20 09:23:28 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-20 09:23:28 +0000
commit89c1384464848c1ad041becf8b97936fa10de21b (patch)
tree62f5694942fee0011a9ee02e75a2666a8fe063d1 /lib/asan/asan_thread.h
parent4ff1f6023ac2f34acea54387998c6fa972aa03b8 (diff)
downloadcompiler-rt-89c1384464848c1ad041becf8b97936fa10de21b.tar.gz
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.h')
-rw-r--r--lib/asan/asan_thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/asan/asan_thread.h b/lib/asan/asan_thread.h
index acc27e52e..bfdccfbd4 100644
--- a/lib/asan/asan_thread.h
+++ b/lib/asan/asan_thread.h
@@ -109,6 +109,11 @@ class AsanThread {
AsanStats stats_;
};
+// Get the current thread. May return 0.
+AsanThread *GetCurrentThread();
+void SetCurrentThread(AsanThread *t);
+u32 GetCurrentTidOrInvalid();
+
} // namespace __asan
#endif // ASAN_THREAD_H