thread-value: Immediately cleanup all Windows TLS values on destroy

This commit is contained in:
Martin Willi
2014-06-04 15:53:02 +02:00
parent 9dec601f30
commit 204098a752
3 changed files with 46 additions and 14 deletions
+10 -2
View File
@@ -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.
*