1 #include "ThreadNaming.hh"
3 #include <Base/Debug/Error.hh>
10 #define MS_VC_EXCEPTION 0x406d1388
13 typedef struct tagTHREADNAME_INFO
23 void BIAS::SetThreadName(
const unsigned long dwThreadID,
const char* szThreadName )
25 if (szThreadName==NULL)
34 #if !defined(COMPILE_DEBUG) || !defined(BIAS_DEBUG)
35 BIASWARN(
"Thread naming (temporarily) disabled to avoid throwing an exception when running without debug heap. dwThreadID="<<dwThreadID);
41 info.szName = szThreadName;
42 info.dwThreadID = dwThreadID;
50 sizeof(info) /
sizeof(DWORD),
60 std::cerr<<__FUNCTION__<<
"not working."<<std::endl;
61 # if defined(BIAS_DEBUG) && defined(COMPILE_DEBUG)