MCPcopy Create free account
hub / github.com/VCVRack/Rack / setThreadName

Function setThreadName

src/system.cpp:657–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657void setThreadName(const std::string& name) {
658#if defined ARCH_LIN
659 pthread_setname_np(pthread_self(), name.substr(0, 15).c_str());
660#elif defined ARCH_MAC
661 // Not supported (yet) on Mac
662#elif defined ARCH_WIN
663 // Not supported on Windows
664#endif
665}
666
667
668std::string getStackTrace() {

Callers 6

initFunction · 0.85
rtAudioCallbackMethod · 0.85
runThreadMethod · 0.85
runMethod · 0.85
Engine_fallbackRunFunction · 0.85
onActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected