diff options
author | Martin Willi <martin@revosec.ch> | 2013-12-06 11:33:40 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:53:02 +0200 |
commit | 204098a7520205b4534044b3840f68cb1a6e20ae (patch) | |
tree | ef89e6c809e75628075eccf636e15fb93391267a /src/libstrongswan/threading/windows/thread.h | |
parent | 9dec601f30ca6558c1b070de1d8e1a2a43eaf49e (diff) | |
download | strongswan-204098a7.tar.bz2 strongswan-204098a7.tar.xz |
thread-value: Immediately cleanup all Windows TLS values on destroy
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. |