Factor out event queue logic to a template mixin.
Ignore changes to SeparateCPUThread after startup.
Merge pull request #3109 from unknownbrackets/gpu-thread

Small refactoring in event queue logic, ignore multithreaded setting change