/// <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> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>. /// </remarks> public static CfrTaskRunner GetForCurrentThread() { var call = new CfxTaskRunnerGetForCurrentThreadRenderProcessCall(); call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); return(CfrTaskRunner.Wrap(call.__retval)); }
/// <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> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>. /// </remarks> public static CfrTaskRunner GetForCurrentThread() { var call = new CfxTaskRunnerGetForCurrentThreadRemoteCall(); call.RequestExecution(); return(CfrTaskRunner.Wrap(new RemotePtr(call.__retval))); }
/// <summary> /// Returns the task runner for the specified CEF thread. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>. /// </remarks> public static CfrTaskRunner GetForThread(CfxThreadId threadId) { var call = new CfxTaskRunnerGetForThreadRemoteCall(); call.threadId = (int)threadId; call.RequestExecution(); return(CfrTaskRunner.Wrap(new RemotePtr(call.__retval))); }
/// <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> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>. /// </remarks> public static CfrTaskRunner GetForCurrentThread() { var connection = CfxRemoteCallContext.CurrentContext.connection; var call = new CfxTaskRunnerGetForCurrentThreadRemoteCall(); call.RequestExecution(connection); return(CfrTaskRunner.Wrap(new RemotePtr(connection, call.__retval))); }