JohannesEbke/a4 — Issue #100: SimpleCommandLineDriver::simple_thread refactor
Author: pwaller
Created: 2012-03-08 09:51:54+00:00
State: open

This one function contains quite a lot of useful functionality I want to reuse. So I am going to refactor it.

Main points:

* It should no longer be a static function (this makes it harder to refactor. At least harder than having a sensible *this)
* Factor out copy-pasta `new_metadata` logic
* Factor out message processing logic

Bonus:

* It should be possible to feed messages to a processor through the driver from a source other than an Input. Alternatively it should be possible to mimic the Input class with something which doesn't have the same behaviour as a current A4Input. Motivation: processing root files directly.

Questions:

* Is there a reason for the `setup_processor()` function to be called serially? (possible protection against thread-unsafe init).