MCPcopy 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
29void SafeContainerBase::onReadBegin() {
30 if (_writeCount > 0) {
31 SC_ASSERT_FAIL("Cannot acquire read lock: write lock already acquired");
32 }
33 _readCount++;
34}
35
36void SafeContainerBase::onReadEnd() {
37 _readCount--;

Callers 1

ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected