| 2585 | default_(value) {} |
| 2586 | |
| 2587 | ~ThreadLocal() { |
| 2588 | // Destroys the managed object for the current thread, if any. |
| 2589 | DeleteThreadLocalValue(pthread_getspecific(key_)); |
| 2590 | |
| 2591 | // Releases resources associated with the key. This will *not* |
| 2592 | // delete managed objects for other threads. |
| 2593 | GTEST_CHECK_POSIX_SUCCESS_(pthread_key_delete(key_)); |
| 2594 | } |
| 2595 | |
| 2596 | T* pointer() { return GetOrCreateValue(); } |
| 2597 | const T* pointer() const { return GetOrCreateValue(); } |
nothing calls this directly
no test coverage detected