/// <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())); }
/// <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 true (1) if this object is pointing to the same task runner as /// |that| object. /// </summary> public unsafe virtual bool IsSame(CefTaskRunner that) { return(SafeCall(NativeInstance->IsSame((that != null) ? that.GetNativeInstance() : null) != 0)); }