views:

31

answers:

1

alt text

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

+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
No, I didn't call `SetThreadName` anywhere .
Alan
@Alan: I meant "one sets the thread name by calling `SetThreadName`". That was a general "you", not you specifically.
Randolpho