internal static cef_end_tracing_callback_t* Alloc()
 {
     var ptr = (cef_end_tracing_callback_t*)Marshal.AllocHGlobal(_sizeof);
     *ptr = new cef_end_tracing_callback_t();
     ptr->_base._size = (UIntPtr)_sizeof;
     return ptr;
 }
        internal static cef_end_tracing_callback_t *Alloc()
        {
            var ptr = (cef_end_tracing_callback_t *)Marshal.AllocHGlobal(_sizeof);

            *ptr = new cef_end_tracing_callback_t();
            ptr->_base._size = (UIntPtr)_sizeof;
            return(ptr);
        }
Esempio n. 3
0
 private void add_ref(cef_end_tracing_callback_t* self)
 {
     lock (SyncRoot)
     {
         var result = ++_refct;
         if (result == 1)
         {
             lock (_roots) { _roots.Add((IntPtr)_self, this); }
         }
     }
 }
Esempio n. 4
0
 private int release(cef_end_tracing_callback_t* self)
 {
     lock (SyncRoot)
     {
         var result = --_refct;
         if (result == 0)
         {
             lock (_roots) { _roots.Remove((IntPtr)_self); }
             return 1;
         }
         return 0;
     }
 }
Esempio n. 5
0
 private int get_refct(cef_end_tracing_callback_t* self)
 {
     return _refct;
 }
Esempio n. 6
0
 private void CheckSelf(cef_end_tracing_callback_t* self)
 {
     if (_self != self) throw ExceptionBuilder.InvalidSelfReference();
 }
Esempio n. 7
0
 public static extern int end_tracing(cef_string_t* tracing_file, cef_end_tracing_callback_t* callback);
Esempio n. 8
0
        private void on_end_tracing_complete(cef_end_tracing_callback_t* self, cef_string_t* tracing_file)
        {
            CheckSelf(self);

            OnEndTracingComplete(cef_string_t.ToString(tracing_file));
        }
 internal static void Free(cef_end_tracing_callback_t* ptr)
 {
     Marshal.FreeHGlobal((IntPtr)ptr);
 }
Esempio n. 10
0
 private int has_one_ref(cef_end_tracing_callback_t* self)
 {
     lock (SyncRoot) { return _refct == 1 ? 1 : 0; }
 }