MCPcopy Create free account
hub / github.com/beefytech/Beef / Deref

Method Deref

IDEHelper/Compiler/BfParser.cpp:382–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void BfParserData::Deref()
383{
384 mRefCount--;
385 BF_ASSERT(mRefCount >= 0);
386 if (mRefCount == 0)
387 {
388 AutoCrit autoCrit(gBfParserCache->mCritSect);
389 BfParserCache::DataEntry dataEntry;
390 dataEntry.mParserData = this;
391 bool didRemove = gBfParserCache->mEntries.Remove(dataEntry);
392 BF_ASSERT(didRemove);
393 delete this;
394 }
395}
396
397//////////////////////////////////////////////////////////////////////////
398

Callers 13

ProcessMethodMethod · 0.45
~HotDataMethod · 0.45
DeleteUnusedFunction · 0.45
~HotResolveDataMethod · 0.45
ClearOldHotDataMethod · 0.45
~BfHotThisTypeMethod · 0.45
~BfHotAllocationMethod · 0.45
~BfHotDupMethodMethod · 0.45
~BfHotInnerMethodMethod · 0.45

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected