However, this method again relies on making the "flags" and "settings" variables PUBLIC in ProcessingThread...
Is there a better way?
Make them protected/private and give the setters/getters?
And you should mutex them!