MCPcopy Create free account
hub / github.com/apple/foundationdb / error

Method error

flow/include/flow/ThreadHelper.actor.h:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void error(const Error& err, int& loopDepth) override {
229 if (callbacks.size() > 10000)
230 TraceEvent(SevWarn, "LargeMultiCallback").detail("CallbacksSize", callbacks.size());
231
232 UNSTOPPABLE_ASSERT(loopDepth == 0);
233
234 while (callbacks.size()) {
235 auto cb = callbacks.back();
236 callbacks.pop_back();
237 cb->destroyHolder(cb->getHolder(this));
238 if (cb->canFire(0)) {
239 int ld = 0;
240 cb->error(err, ld);
241 }
242 }
243 }
244
245 void destroy() override {
246 // This assert assures that all ThreadMultiCallbacks remove themselves as a holder from

Callers

nothing calls this directly

Calls 9

TraceEventClass · 0.85
detailMethod · 0.80
destroyHolderMethod · 0.80
getHolderMethod · 0.80
sizeMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
canFireMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected