-
Notifications
You must be signed in to change notification settings - Fork 15
WIP: Batch mode #2
base: master
Are you sure you want to change the base?
Conversation
2. actually stopping the process on EOF
I'm not sure how to end the program because the writing process doesn't have a "break" in the while(1). So what I did was wait for EOF on the input, then add a 1 second delay to let the worker processes finish, and finally finish the program. Ugly hack but it seems to work. |
Indeed, a proper end sequence is something I had on my todo list. My idea was having bools for each loop, wait for each producer in the chain to stop, let the next worker finish up until the fifo is empty and then close off properly down to the last worker - that write data out. I just tried building in my mingw environment, everything built and worked as expected. |
Trying to decouple UI logic from processing. Will add code for a command line version.