Another alternative solution would be to implement a mir_main_loop_wait() type function, which blocks and provides a mutual exclusion guarantee with input callbacks.
Another alternative solution would be to implement a mir_main_ loop_wait( ) type function, which blocks and provides a mutual exclusion guarantee with input callbacks.