Ejemplo n.º 1
0
        public static int post_task(cef_task_runner_t *self, cef_task_t *task)
        {
            post_task_delegate d;
            var p = self->_post_task;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (post_task_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(post_task_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self, task));
        }
Ejemplo n.º 2
0
 public static int post_task(cef_task_runner_t* self, cef_task_t* task)
 {
     post_task_delegate d;
     var p = self->_post_task;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (post_task_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(post_task_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self, task);
 }