protected virtual void OnNativeThreadExited(ThreadEventArgs e) { if (NativeThreadExited != null) { NativeThreadExited(this, e); } }
protected virtual void OnNameChanged(ThreadEventArgs e) { if (NameChanged != null) { NameChanged(this, e); } }
protected virtual void OnExited(ThreadEventArgs e) { if (Exited != null) { Exited(this, e); } }
private void ThreadExited(object sender, ThreadEventArgs ev) { Console.Error.WriteLine("ThreadExited:" + ev.Thread.ID); }
private void ThreadStarted(object sender, ThreadEventArgs ev) { EventRequest eventRequest = threadStartEventRequest; if (eventRequest != null) { Thread th = ev.Thread; jdwpEventHandler.Send(SuspendPolicy.EVENT_THREAD, EventKind.THREAD_START, eventRequest.RequestId, (int)th.ID); ev.Thread.Exited += new EventHandler<ThreadEventArgs>(ThreadExited); } Console.Error.WriteLine("ThreadStarted:" + ev.Thread.ID+ " " + eventRequest); }
void debuggedProcess_ThreadStarted(object sender, ThreadEventArgs e) { AddThread(e.Thread); }