/// <summary> /// Returns the task runner for the specified CEF thread. /// </summary> public static CefTaskRunner GetForThread(CefThreadId threadId) { return(CefTaskRunner.Wrap(CefTaskRunner.Create, CefNativeApi.cef_task_runner_get_for_thread(threadId))); }
/// <summary> /// Returns the task runner for the current thread. Only CEF threads will have /// task runners. An NULL reference will be returned if this function is called /// on an invalid thread. /// </summary> public static CefTaskRunner GetForCurrentThread() { return(CefTaskRunner.Wrap(CefTaskRunner.Create, CefNativeApi.cef_task_runner_get_for_current_thread())); }