MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / GetOrCreateValue

Method GetOrCreateValue

test/common/gtest/gtest.h:2995–2998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2993
2994
2995 T* GetOrCreateValue() const {
2996 return static_cast<ValueHolder*>(
2997 ThreadLocalRegistry::GetValueOnCurrentThread(this))->pointer();
2998 }
2999
3000 virtual ThreadLocalValueHolderBase* NewValueForCurrentThread() const {
3001 return new ValueHolder(default_);

Callers

nothing calls this directly

Calls 1

pointerMethod · 0.45

Tested by

no test coverage detected