当前位置: 首页>>代码示例>>C#>>正文


C# ICorDebugThread.GetID方法代码示例

本文整理汇总了C#中ICorDebugThread.GetID方法的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugThread.GetID方法的具体用法?C# ICorDebugThread.GetID怎么用?C# ICorDebugThread.GetID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICorDebugThread的用法示例。


在下文中一共展示了ICorDebugThread.GetID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CorDebugThread

 public CorDebugThread(ICorDebugThread _thread)
 {
     m_corThread = _thread;
     uint id;
     m_corThread.GetID(out id);
     ID = id;
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:7,代码来源:CorThread.cs

示例2: ExitThread

		public void ExitThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
		{
			Thread thread = process.GetThread(pThread);
			
			// ICorDebugThread is still not dead and can be used for some operations
			if (thread != null) {
				EnterCallback("ExitThread " + pThread.GetID(), pThread);
				
				thread.NotifyExited();
			} else {
				EnterCallback("ExitThread " + pThread.GetID(), process.CorProcess);
				
				// .NET 4.0 - It seems that the API is reporting exits of threads without announcing their creation.
				// TODO: Remove in next .NET 4.0 beta and investigate
				process.TraceMessage("ERROR: Thread does not exist " + pThread.GetID());
			}
			
			try {
				ExitCallback();
			} catch (COMException e) {
				// For some reason this sometimes happens in .NET 1.1
				process.TraceMessage("Continue failed in ExitThread callback: " + e.Message);
			}
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:24,代码来源:ManagedCallback.cs

示例3: CreateThread

		public void CreateThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
		{
			// We can not use pThread since it has not been added yet
			// and we continue from this callback anyway
			EnterCallback("CreateThread " + pThread.GetID(), pAppDomain);
			
			Thread thread = new Thread(process, pThread);
			process.threads.Add(thread);
			
			ExitCallback();
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:11,代码来源:ManagedCallback.cs

示例4: _UpdateActiveThread

 void _UpdateActiveThread(ICorDebugThread thread)
 {
     if (null == thread)
     {
         int i33 = 33;
     }
     else
     {
         lock (dbgproc)
         {
             //dbgproc.idbgthd = thread;
             thread.GetID(out dbgproc.ActiveThreadID);
             //thread.GetActiveFrame(out dbgproc.idbgfrm);
         }
     }
 }
开发者ID:erisonliang,项目名称:qizmt,代码行数:16,代码来源:Program.cs

示例5: CreateThread

		public void CreateThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
		{
			// We can not use pThread since it has not been added yet
			// and we continue from this callback anyway
			EnterCallback(PausedReason.Other, "CreateThread " + pThread.GetID(), pAppDomain);
			
			Thread thread = new Thread(process, pThread);
			process.Threads.Add(thread);
			
			thread.CorThread.SetDebugState(process.NewThreadState);
			
			ExitCallback();
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:13,代码来源:ManagedCallback.cs

示例6: CorThread

 public CorThread(ICorDebugThread thread)
 {
     corThread = thread;
     corThread.GetID(out id);
     //corThread.G
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:6,代码来源:CorThread.cs


注:本文中的ICorDebugThread.GetID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。