Please enable JavaScript to view this site.

Memory Validator Help

Navigation: Native API

Naming Threads

Scroll Prev Top Next More

 

 

API Function for naming heaps

 

Named threads are very useful if you want to use the thread filter to display data.

 

Filtering threads with real names make it much easier to watch events than using a thread id, especially as thread ids are quite likely be different between sessions.

 

 

mvSetThreadName()

 

Tells Memory Validator to name a specific thread.

 

extern "C" 
void mvSetThreadName(DWORD              threadID,   // id identifying a thread (CreateThread, CreateProcess, beginthread(), beginthreadex(), GetCurrentThreadId()...)
                     const TCHAR*    name);