MCPcopy Create free account
hub / github.com/beefytech/Beef / SetThreadName

Method SetThreadName

BeefySysLib/util/BeefPerf.cpp:609–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609void BpThreadInfo::SetThreadName(const char* name)
610{
611 int len = (int)strlen(name);
612 if (mThreadName == NULL)
613 {
614 mThreadName = (char*)BpManager::Get()->AllocBytes(len + 1);
615 memcpy(mThreadName, name, len + 1);
616 }
617
618 BPCMD_PREPARE;
619
620 BPCMD_RESERVE(1 + len + 1);
621 BPCMD_MEMBER(uint8) = BpCmd_ThreadName;
622 BPCMD_MEMCPY(name, len + 1);
623 BPCMD_END();
624}
625
626void BpThreadInfo::RemoveThread()
627{

Callers 2

InitMethod · 0.80
BpSetThreadNameFunction · 0.80

Calls 2

GetFunction · 0.85
AllocBytesMethod · 0.45

Tested by

no test coverage detected