MCPcopy Create free account
hub / github.com/bwapi/bwapi / SetThreadName

Function SetThreadName

bwapi/BWAPI/Source/Thread.cpp:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#pragma pack(pop)
23
24void SetThreadName( const char *threadName, unsigned threadId)
25{
26 THREADNAME_INFO info;
27 info.dwType = 0x1000;
28 info.szName = threadName;
29 info.dwThreadID = threadId;
30 info.dwFlags = 0;
31
32 __try
33 {
34 RaiseException( MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(ULONG_PTR), (ULONG_PTR*)&info );
35 }
36 __except(EXCEPTION_EXECUTE_HANDLER)
37 {
38 }
39}
40
41////////////////////////////////////////////////////////////////////////////////////////////////////
42

Callers 1

CheckRegisteredThreadsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected