Use mailboxes for passing data to main thread.

Push all information from ISR and other threads to main thread's
event loop using mailboxes.