Indexamajig exit criterion is wrong for ASAP::O
Currently, if any worker gets kEndOfStream
from ASAP::O, it will set the "finished" flag and the sandbox code will set should_shutdown
to 1, resulting in the entire program exiting. It should only exit once all workers have got kEndOfStream
.
There are some subtleties. See https://confluence.desy.de/display/StreamCryst/Results+and+ideas+from+2c (internal only), and work in progress on branch https://gitlab.desy.de/thomas.white/crystfel/-/tree/exit-criterion.
Is the solution simply to remove this line in the ASAP::O part of the main loop in run_work
?
sb->shared->should_shutdown = 1;