protected override ThreadInfo[] OnGetThreads (long processId) { if (current_threads == null) { List<ThreadInfo> threads = new List<ThreadInfo> (); foreach (ThreadMirror t in vm.GetThreads ()) { string name = t.Name; if (string.IsNullOrEmpty (name) && t.IsThreadPoolThread) name = "<Thread Pool>"; threads.Add (new ThreadInfo (processId, GetId (t), name, null)); } current_threads = threads.ToArray (); } return current_threads; }
protected virtual void OnResumed () { current_threads = null; current_thread = null; procs = null; activeExceptionsByThread.Clear (); }
protected override ThreadInfo[] OnGetThreads (long processId) { if (current_threads == null) { List<ThreadInfo> threads = new List<ThreadInfo> (); foreach (ThreadMirror t in vm.GetThreads ()) threads.Add (new ThreadInfo (processId, t.Id, t.Name, null)); current_threads = threads.ToArray (); } return current_threads; }
protected override ThreadInfo[] OnGetThreads (long processId) { if (current_threads == null) { IList<ThreadMirror> mirrors = vm.GetThreads (); var threads = new ThreadInfo[mirrors.Count]; for (int i = 0; i < mirrors.Count; i++) { ThreadMirror t = mirrors [i]; string name = t.Name; if (string.IsNullOrEmpty (name) && t.IsThreadPoolThread) name = "<Thread Pool>"; threads[i] = new ThreadInfo (processId, GetId (t), name, null); } current_threads = threads; } return current_threads; }
public ThreadInfo[] GetThreads () { if (currentThreads == null) currentThreads = session.GetThreads (id); return currentThreads; }