Exemple #1
0
        public void Tick()
        {
#if THREAD_SAFE
            lock (this) {
#endif
            CheckLiveness();
            ReleasePendingJSFunctions();
            ReleasePendingJSObjects();
            if (PuertsDLL.InspectorTick(isolate))
            {
#if CSHARP_7_3_OR_NEWER
                if (waitDebugerTaskSource != null)
                {
                    var tmp = waitDebugerTaskSource;
                    waitDebugerTaskSource = null;
                    tmp.SetResult(true);
                }
#endif
            }
            tickHandler.ForEach(fn =>
            {
                IntPtr resultInfo = PuertsDLL.InvokeJSFunction(fn, false);
                if (resultInfo == IntPtr.Zero)
                {
                    var exceptionInfo = PuertsDLL.GetFunctionLastExceptionInfo(fn);
                    throw new Exception(exceptionInfo);
                }
            });
#if THREAD_SAFE
        }
#endif
        }
Exemple #2
0
        public void WaitDebugger()
        {
#if THREAD_SAFE
            lock (this) {
#endif
            while (!PuertsDLL.InspectorTick(isolate))
            {
            }
#if THREAD_SAFE
        }
#endif
        }
Exemple #3
0
 public void Tick()
 {
     PuertsDLL.InspectorTick(isolate);
     tickHandler.ForEach(fn =>
     {
         IntPtr resultInfo = PuertsDLL.InvokeJSFunction(fn, false);
         if (resultInfo == IntPtr.Zero)
         {
             var exceptionInfo = PuertsDLL.GetFunctionLastExceptionInfo(fn);
             throw new Exception(exceptionInfo);
         }
     });
 }
Exemple #4
0
        public void Tick()
        {
#if THREAD_SAFE
            lock (this) {
#endif
            ReleasePendingJSFunctions();
            PuertsDLL.InspectorTick(isolate);
            tickHandler.ForEach(fn =>
            {
                IntPtr resultInfo = PuertsDLL.InvokeJSFunction(fn, false);
                if (resultInfo == IntPtr.Zero)
                {
                    var exceptionInfo = PuertsDLL.GetFunctionLastExceptionInfo(fn);
                    throw new Exception(exceptionInfo);
                }
            });
#if THREAD_SAFE
        }
#endif
        }
Exemple #5
0
 public void WaitDebugger()
 {
     while (!PuertsDLL.InspectorTick(isolate))
     {
     }
 }
Exemple #6
0
 public void Tick()
 {
     PuertsDLL.InspectorTick(isolate);
 }