开发者

How are thread names populated in thread window of visual studio?

How are thread names populated in thread window of visual studio?

Especially,how the开发者_开发问答 thread be named by method name like GrabberCB::BufferCB?


In native code (you specified C as a tag, so I'm assuming Win32), you do it by calling SetThreadName.

For more info, see this informative article.

You can also do it in .NET by setting the Name property of the thread object.

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

I assume the creator of the thread decided to set the name that way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜