From 204098a7520205b4534044b3840f68cb1a6e20ae Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 6 Dec 2013 11:33:40 +0100 Subject: thread-value: Immediately cleanup all Windows TLS values on destroy --- src/libstrongswan/threading/windows/thread.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/libstrongswan/threading/windows/thread.h') diff --git a/src/libstrongswan/threading/windows/thread.h b/src/libstrongswan/threading/windows/thread.h index e393d183c..571171702 100644 --- a/src/libstrongswan/threading/windows/thread.h +++ b/src/libstrongswan/threading/windows/thread.h @@ -73,11 +73,19 @@ void* thread_tls_get(void *key); * Remove a thread specific value from the current thread. * * @param key unique key specifying the TLS variable - * @param value value to set - * @return old value for key, if any + * @return value for key, if any */ void* thread_tls_remove(void *key); +/** + * Remove a thread specific value from all threads. + * + * For each found TLS value thread_tls_cleanup() is invoked. + * + * @param key unique key specifying the TLS variable + */ +void thread_tls_remove_all(void *key); + /** * Cleanup function for thread specific value. * -- cgit v1.2.3