cbac14c135
* fix deadlock between get_status and main loop * isolate all shared state in one struct in order to avoid deadlocks