示例#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>
 public static CefTaskRunner GetForCurrentThread()
 {
     return(CefTaskRunner.Wrap(CefTaskRunner.Create, CefNativeApi.cef_task_runner_get_for_current_thread()));
 }
示例#2
0
 /// <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)));
 }
示例#3
0
 /// <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));
 }