diff options
author | Sergey Matveev <earthdok@google.com> | 2013-05-27 10:35:51 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-05-27 10:35:51 +0000 |
commit | 98d3b40ec5cf06e46397492c21acc9d18e8c54ab (patch) | |
tree | 966b40e7c774096d5574ee3f37ee2214ebec8d9c /lib/sanitizer_common/sanitizer_thread_registry.h | |
parent | 57434a3174cfd9c4c5f304ea412492e4935cc18d (diff) |
[sanitizer] Move FindThreadByOSIdLocked from lsan to sanitizer_common.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_thread_registry.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_thread_registry.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_thread_registry.h b/lib/sanitizer_common/sanitizer_thread_registry.h index fde969c6c..6072e7c0a 100644 --- a/lib/sanitizer_common/sanitizer_thread_registry.h +++ b/lib/sanitizer_common/sanitizer_thread_registry.h @@ -102,10 +102,11 @@ class ThreadRegistry { // Finds a thread using the provided callback. Returns kUnknownTid if no // thread is found. u32 FindThread(FindThreadCallback cb, void *arg); - // Should be guarded by ThreadRegistryLock. Returns 0 if no thread + // Should be guarded by ThreadRegistryLock. Return 0 if no thread // is found. ThreadContextBase *FindThreadContextLocked(FindThreadCallback cb, void *arg); + ThreadContextBase *FindThreadContextByOsIDLocked(uptr os_id); void SetThreadName(u32 tid, const char *name); void DetachThread(u32 tid); |