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)); }
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); }