MCPcopy Create free account
hub / github.com/apache/singa / CreateKey

Method CreateKey

test/gtest/gtest.h:2614–2621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2612 };
2613
2614 static pthread_key_t CreateKey() {
2615 pthread_key_t key;
2616 // When a thread exits, DeleteThreadLocalValue() will be called on
2617 // the object managed for that thread.
2618 GTEST_CHECK_POSIX_SUCCESS_(
2619 pthread_key_create(&key, &DeleteThreadLocalValue));
2620 return key;
2621 }
2622
2623 T* GetOrCreateValue() const {
2624 ThreadLocalValueHolderBase* const holder =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected