internal CorDebugThread GetThread(uint _tid) { CorDebugThread corThread = null; ICorDebugThread thread = m_Process.GetThread(_tid); if (thread != null) { corThread = new CorDebugThread(thread); } return corThread; }
internal void PostThreadNotification(CorDebugThread _thread, bool isCreated) { if(m_ThreadNotification != null){ ThreadNotificationResult threadResult = new ThreadNotificationResult(); threadResult.IsCreated = isCreated; threadResult.ProcessID = m_ProcessID; threadResult.ThreadID = _thread.ID; ThreadPool.QueueUserWorkItem( new WaitCallback(SendNotifications), new InnerObject(m_ThreadNotification, threadResult) ); } }