| 655 | |
| 656 | |
| 657 | void 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 | |
| 668 | std::string getStackTrace() { |
no outgoing calls
no test coverage detected