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.
精彩评论