From 87db45afdeb455c8df940aa69e48e126ab98adef Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 28 Jul 2010 22:49:43 +0000 Subject: Add an erase() method to llvm::ThreadLocal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109686 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/ThreadLocal.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/System/ThreadLocal.cpp') diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index e7054b5..b84a8e7 100644 --- a/lib/System/ThreadLocal.cpp +++ b/lib/System/ThreadLocal.cpp @@ -67,6 +67,10 @@ const void* ThreadLocalImpl::getInstance() { return pthread_getspecific(*key); } +void ThreadLocalImpl::removeInstance() { + setInstance(0); +} + } #elif defined(LLVM_ON_UNIX) -- cgit v1.1