MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / finishParent

Method finishParent

util/parallel.cpp:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void parallel::finishParent() {
201 ensureParent();
202 while (readFromChildren(/*blocking=*/true))
203 reapZombies();
204 assert(active_children == 0);
205 while (wait(nullptr) != -1)
206 ;
207 ENSURE(emitOutput());
208}
209
210/*
211 * return true iff end of output has been reached

Callers 1

finalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected