btstack_run_loop_execute_on_main_thread() function
Registers callback with run loop and mark main thread as ready
Notes
If callback is already registered, the call will be ignored. This function allows to implement, e.g., a queue-based message passing mechanism: The external thread puts an item into a queue and call this function to trigger processing by the BTstack main thread. If this happens multiple times, it is guaranteed that the callback will run at least once after the last item was added.