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

Function runNetwork

fdbclient/NativeAPI.actor.cpp:2590–2607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2588}
2589
2590void runNetwork() {
2591 if (!g_network) {
2592 throw network_not_setup();
2593 }
2594
2595 if (!g_network->checkRunnable()) {
2596 throw network_cannot_be_restarted();
2597 }
2598
2599 if (networkOptions.traceDirectory.present() && networkOptions.runLoopProfilingEnabled) {
2600 setupRunLoopProfiler();
2601 }
2602
2603 g_network->run();
2604
2605 if (networkOptions.traceDirectory.present())
2606 systemMonitor();
2607}
2608
2609void stopNetwork() {
2610 if (!g_network)

Callers 5

runNetworkMethod · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 5

setupRunLoopProfilerFunction · 0.85
systemMonitorFunction · 0.85
runMethod · 0.65
checkRunnableMethod · 0.45
presentMethod · 0.45

Tested by

no test coverage detected