MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / CreateKey

Function CreateKey

tests/gtest/gtest.h:2053–2060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2051 };
2052
2053 static pthread_key_t CreateKey() {
2054 pthread_key_t key;
2055 // When a thread exits, DeleteThreadLocalValue() will be called on
2056 // the object managed for that thread.
2057 GTEST_CHECK_POSIX_SUCCESS_(
2058 pthread_key_create(&key, &DeleteThreadLocalValue));
2059 return key;
2060 }
2061
2062 T* GetOrCreateValue() const {
2063 ThreadLocalValueHolderBase* const holder =

Callers 2

gtest.hFile · 0.85
ThreadLocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected