MCPcopy Create free account
hub / github.com/Snapchat/Valdi / readAccess

Method readAccess

valdi_core/src/valdi_core/cpp/Utils/ReferenceTable.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77ReferenceTable::ReadAccess ReferenceTable::readAccess() const {
78 if (_disallowMultipleConcurrentReaders) {
79 return ReadAccess(this, _uniqueMutex);
80 } else {
81 return ReadAccess(this, _sharedMutex);
82 }
83}
84
85ReferenceTableStats ReferenceTable::dumpStats() const {
86 size_t tableSize;

Callers 6

getRetainCountMethod · 0.45
newLocalRefMethod · 0.45
TESTFunction · 0.45
containsMethod · 0.45
getRetainCountMethod · 0.45
newLocalRefMethod · 0.45

Calls 1

ReadAccessClass · 0.70

Tested by 1

TESTFunction · 0.36