diff options
Diffstat (limited to 'src/libstrongswan/threading/windows/thread.h')
-rw-r--r-- | src/libstrongswan/threading/windows/thread.h | 12 |
1 files changed, 10 insertions, 2 deletions
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,12 +73,20 @@ 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. * * This is called whenever a thread exits to clean up thread specific data. |