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 }
public void WaitDebugger() { #if THREAD_SAFE lock (this) { #endif while (!PuertsDLL.InspectorTick(isolate)) { } #if THREAD_SAFE } #endif }
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); } }); }
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 }
public void WaitDebugger() { while (!PuertsDLL.InspectorTick(isolate)) { } }
public void Tick() { PuertsDLL.InspectorTick(isolate); }