예제 #1
0
        internal void CheckInterrupt()
        {
            if (_interrupted)
            {
                _interrupted = false;

                Interrupt?.Invoke(this, EventArgs.Empty);
            }

            _nativeContext.SetCounter(MinCountForCheck);
        }
예제 #2
0
        public ExecutionContext()
        {
            _nativeContext = new NativeContext();

            Running = true;

            _nativeContext.SetCounter(MinCountForCheck);
        }
예제 #3
0
        public ExecutionContext(IJitMemoryAllocator allocator)
        {
            _nativeContext = new NativeContext(allocator);

            Running = true;

            _nativeContext.SetCounter(MinCountForCheck);
        }