Beispiel #1
0
 /// <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 CfxTaskRunner GetForCurrentThread()
 {
     return(CfxTaskRunner.Wrap(CfxApi.cfx_task_runner_get_for_current_thread()));
 }
Beispiel #2
0
 /// <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 CfxTaskRunner GetForThread(CfxThreadId threadId)
 {
     return(CfxTaskRunner.Wrap(CfxApi.cfx_task_runner_get_for_thread((int)threadId)));
 }