c - 如何在 visual studio 的线程窗口中填充线程名称?

标签 c visual-studio-2008

alt text

特别是,线程如何通过GrabberCB::BufferCB这样的方法名来命名?

最佳答案

在 native 代码中(您将 C 指定为标记,所以我假设是 Win32),您通过调用 SetThreadName 来完成。

有关详细信息,请参阅 this informative article .

您也可以在 .NET 中通过设置线程对象的 Name 属性来实现。

how the thread be named by method name like GrabberCB::BufferCB?

我假设线程的创建者决定以这种方式设置名称。

关于c - 如何在 visual studio 的线程窗口中填充线程名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3728983/

相关文章:

c - 卡在交互式 openGL 程序中

c++ - 错误 : ‘template’ (as a disambiguator) is only allowed within templates

vb.net - 如何将数组列表放入列表框中

c# - 捕捉错误

c++ - 将 C++ 代码从 VC6 迁移到 VS2008 后出现错误 C2678 - 未找到采用 'type' 类型左侧操作数的运算符

c - 两个数之间的乘法

c - 释放非堆内存

C 动态宏选择

c - 在 C 中并排打印二维数组

visual-studio-2010 - 来自 Visual Studio 2010 的 Visual Studio 2008 项目,无需转换