diff options
Diffstat (limited to 'lib/System/ThreadLocal.cpp')
-rw-r--r-- | lib/System/ThreadLocal.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |