static public void MainThread(ThreadCallbackType callback) { Thread(s_MainThreadContext, callback); }
static public void WorkerThread(ThreadCallbackType callback) { Thread(s_WorkerThreadContext, callback); }
static public void Thread(System.Threading.SynchronizationContext context, ThreadCallbackType callback) { context.Post(( object state ) => { callback(); }, null); }