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

Function criticalError

flow/Platform.actor.cpp:3299–3310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3297} // namespace platform
3298
3299extern "C" void criticalError(int exitCode, const char* type, const char* message) {
3300 // Be careful! This function may be called asynchronously from a thread or in other weird conditions
3301
3302 fprintf(stderr, "ERROR: %s\n", message);
3303
3304 if (g_network && !g_network->isSimulated()) {
3305 TraceEvent ev(SevError, type);
3306 ev.detail("Message", message);
3307 }
3308
3309 flushAndExit(exitCode);
3310}
3311
3312extern void flushTraceFileVoid();
3313

Callers 10

outOfMemoryFunction · 0.85
platformInitFunction · 0.85
EventMethod · 0.85
initChainFunction · 0.85
getSharedMemoryMachineIdFunction · 0.85
parentWatcherFunction · 0.85
Net2FileSystemMethod · 0.85
Coro_StartWithArgFunction · 0.85
Coro_setupFunction · 0.85
parentWatcherFunction · 0.85

Calls 4

fprintfFunction · 0.85
flushAndExitFunction · 0.85
detailMethod · 0.80
isSimulatedMethod · 0.45

Tested by

no test coverage detected