summaryrefslogtreecommitdiff
path: root/lib/asan/asan_thread_registry.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-01-11 02:21:06 +0000
committerKostya Serebryany <kcc@google.com>2012-01-11 02:21:06 +0000
commitcc4e6862c6a8f8f3ead96bd32b815184a36faded (patch)
treedca3f083055b421f511db24f1b530efdb1a40a19 /lib/asan/asan_thread_registry.h
parentaf3441580555ceed092170232cd5f2cc180f19f4 (diff)
downloadcompiler-rt-cc4e6862c6a8f8f3ead96bd32b815184a36faded.tar.gz
[asan] move TSD code into asan_posix.cc
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread_registry.h')
-rw-r--r--lib/asan/asan_thread_registry.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/asan/asan_thread_registry.h b/lib/asan/asan_thread_registry.h
index 0e8e924e3..994de98d6 100644
--- a/lib/asan/asan_thread_registry.h
+++ b/lib/asan/asan_thread_registry.h
@@ -38,7 +38,6 @@ class AsanThreadRegistry {
// Get the current thread. May return NULL.
AsanThread *GetCurrent();
void SetCurrent(AsanThread *t);
- pthread_key_t GetTlsKey();
int GetCurrentTidOrMinusOne() {
AsanThread *t = GetCurrent();
@@ -71,12 +70,6 @@ class AsanThreadRegistry {
AsanStats accumulated_stats_;
int n_threads_;
AsanLock mu_;
- // For each thread tls_key_ stores the pointer to the corresponding
- // AsanThread.
- pthread_key_t tls_key_;
- // This flag is updated only once at program startup, and then read
- // by concurrent threads.
- bool tls_key_created_;
};
// Returns a single instance of registry.