/// <summary> /// Constructor /// </summary> internal IslandThread(InvokeIslandDelegate invokeIsland, bool breakOnStartup) { _invokeIsland = invokeIsland; _breakOnStartup = breakOnStartup; _virtualStack = new Stack <VirtualStackFrame>(); _workToDoEvent = new AutoResetEvent(false); _workDoneEvent = new AutoResetEvent(false); _workerThread = new Thread(new ThreadStart(WorkerThreadProc)); _workerThread.Name = "DebuggerWorker"; _workerThread.IsBackground = true; // Don't prevent process exit _workerThread.Start(); }
/// <summary> /// Constructor /// </summary> internal IslandThread(InvokeIslandDelegate invokeIsland, bool breakOnStartup) { _invokeIsland = invokeIsland; _breakOnStartup = breakOnStartup; _virtualStack = new Stack<VirtualStackFrame>(); _workToDoEvent = new AutoResetEvent(false); _workDoneEvent = new AutoResetEvent(false); _workerThread = new Thread(new ThreadStart(WorkerThreadProc)); _workerThread.Name = "DebuggerWorker"; _workerThread.IsBackground = true; // Don't prevent process exit _workerThread.Start(); }