Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ onReadBegin
Method
onReadBegin
snap_drawing/src/snap_drawing/cpp/Utils/SafeContainer.cpp:29–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
void SafeContainerBase::onReadBegin() {
30
if (_writeCount > 0) {
31
SC_ASSERT_FAIL(
"Cannot acquire read lock: write lock already acquired"
);
32
}
33
_readCount++;
34
}
35
36
void SafeContainerBase::onReadEnd() {
37
_readCount--;
Callers
1
Read
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected