示例#1
0
        /// <summary>
        /// Post a task for delayed execution on the specified thread.
        /// This function may be called on any thread.
        /// </summary>
        public static void PostTask(CefThreadId threadId, CefTask task, long delayMs)
        {
            var result = NativeMethods.cef_post_delayed_task((cef_thread_id_t)threadId, task.GetNativePointerAndAddRef(), delayMs) != 0;

            if (!result)
            {
                ThrowPostTaskError();
            }
        }
示例#2
0
 /// <summary>
 /// Post a task for delayed execution on the specified thread.
 /// This function may be called on any thread.
 /// </summary>
 public static void PostTask(CefThreadId threadId, CefTask task, long delayMs)
 {
     var result = NativeMethods.cef_post_delayed_task((cef_thread_id_t)threadId, task.GetNativePointerAndAddRef(), delayMs) != 0;
     if (!result) ThrowPostTaskError();
 }
示例#3
0
 /// <summary>
 /// Post a task for delayed execution on the specified thread.
 /// This function may be called on any thread.
 /// </summary>
 public static void Post(CefThreadId threadId, CefTask task, long delayMs)
 {
     Cef.PostTask(threadId, task, delayMs);
 }
示例#4
0
 /// <summary>
 /// Post a task for execution on the specified thread.
 /// This function may be called on any thread.
 /// </summary>
 public static void Post(CefThreadId threadId, CefTask task)
 {
     Cef.PostTask(threadId, task);
 }
示例#5
0
 /// <summary>
 /// Post a task for delayed execution on the specified thread.
 /// This function may be called on any thread.
 /// </summary>
 public static void Post(CefThreadId threadId, CefTask task, long delayMs)
 {
     Cef.PostTask(threadId, task, delayMs);
 }
示例#6
0
 /// <summary>
 /// Post a task for execution on the specified thread.
 /// This function may be called on any thread.
 /// </summary>
 public static void Post(CefThreadId threadId, CefTask task)
 {
     Cef.PostTask(threadId, task);
 }