예제 #1
0
파일: Cef.cs 프로젝트: PlumpMath/cefglue-5
        /// <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);
 }