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

Method Cancel

IDEHelper/Compiler/BfCompiler.cpp:8139–8152  ·  view source on GitHub ↗

Can should still leave the system in a state such that we when we save as much progress as possible while still leaving the system in a state that the next attempt at compile will resume with a valid state Canceling will still process the pending PopulateType calls but may leave items in the method worklist. Note that Cancel is an async request to cancel

Source from the content-addressed store, hash-verified

8137// Canceling will still process the pending PopulateType calls but may leave items in the method worklist.
8138// Note that Cancel is an async request to cancel
8139void BfCompiler::Cancel()
8140{
8141 mCanceling = true;
8142 mFastFinish = true;
8143 mHadCancel = true;
8144 if (mCeMachine != NULL)
8145 {
8146 AutoCrit autoCrit(mCeMachine->mCritSect);
8147 mCeMachine->mSpecialCheck = true;
8148 mFastFinish = true;
8149 }
8150 BfLogSysM("BfCompiler::Cancel\n");
8151 BpEvent("BfCompiler::Cancel", "");
8152}
8153
8154void BfCompiler::RequestFastFinish()
8155{

Callers 2

DoCompileMethod · 0.45
BfCompiler_CancelFunction · 0.45

Calls 1

BpEventFunction · 0.85

Tested by

no test coverage detected