public static int belongs_to_current_thread(cef_task_runner_t *self)
        {
            belongs_to_current_thread_delegate d;
            var p = self->_belongs_to_current_thread;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (belongs_to_current_thread_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(belongs_to_current_thread_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
Example #2
0
 public static int belongs_to_current_thread(cef_task_runner_t* self)
 {
     belongs_to_current_thread_delegate d;
     var p = self->_belongs_to_current_thread;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (belongs_to_current_thread_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(belongs_to_current_thread_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }