MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / decRefCount

Method decRefCount

source/util/bstring.cpp:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void BStringData::decRefCount() {
71 if (refCount.fetch_sub(1, std::memory_order_acq_rel) == 1) {
72 if (level) {
73 releaseString(level, str);
74 }
75 delete this;
76 }
77}
78
79static BStringData* allocNewData() {
80 return new BStringData();

Callers 3

~BStringMethod · 0.80
bstring.cppFile · 0.80
makeWritableMethod · 0.80

Calls 2

releaseStringFunction · 0.85
fetch_subMethod · 0.45

Tested by

no test coverage detected