diff options
Diffstat (limited to 'base/threading/thread_local_storage.h')
-rw-r--r-- | base/threading/thread_local_storage.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/threading/thread_local_storage.h b/base/threading/thread_local_storage.h index fd2a789d01..c5c7759efc 100644 --- a/base/threading/thread_local_storage.h +++ b/base/threading/thread_local_storage.h @@ -75,6 +75,13 @@ class BASE_EXPORT PlatformThreadLocalStorage { // GetTLSValue() to retrieve the value of slot as it has already been reset // in Posix. static void OnThreadExit(void* value); + // Normally, Chrome runs as a process, so freeing the TLS is not needed since + // the OS will perform that while it's reclaiming the process' memory upon + // termination. If, however, this code is used inside a library that is + // dynamically loaded and unloaded, the consumer is responsible for calling + // this after all Chrome threads have stopped and prior to unloading the + // library. + static void ForceFreeTLS(); #endif }; |