MCPcopy Create free account
hub / github.com/BVLC/caffe / CreateKey

Method CreateKey

src/gtest/gtest.h:2423–2430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2421 };
2422
2423 static pthread_key_t CreateKey() {
2424 pthread_key_t key;
2425 // When a thread exits, DeleteThreadLocalValue() will be called on
2426 // the object managed for that thread.
2427 GTEST_CHECK_POSIX_SUCCESS_(
2428 pthread_key_create(&key, &DeleteThreadLocalValue));
2429 return key;
2430 }
2431
2432 T* GetOrCreateValue() const {
2433 ThreadLocalValueHolderBase* const holder =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected