MCPcopy Create free account
hub / github.com/apache/singa / ~ThreadLocal

Method ~ThreadLocal

test/gtest/gtest.h:2587–2594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(); }

Callers

nothing calls this directly

Calls 1

DeleteThreadLocalValueFunction · 0.85

Tested by

no test coverage detected