Especially,how the thread be named by method name like GrabberCB::BufferCB
?
views:
31answers:
1
+3
A:
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.
Randolpho
2010-09-16 17:06:57
No, I didn't call `SetThreadName` anywhere .
Alan
2010-09-18 02:49:48
@Alan: I meant "one sets the thread name by calling `SetThreadName`". That was a general "you", not you specifically.
Randolpho
2010-09-18 14:32:49