Function std::rt::start_on_main_thread

pub fn start_on_main_thread(argc: int, argv: **u8, main: ~fn()) -> int

Like start but creates an additional scheduler on the current thread, which in most cases will be the 'main' thread, and pins the main task to it.

This is appropriate for running code that must execute on the main thread, such as the platform event loop and GUI.