| 67 | public: |
| 68 | |
| 69 | static std::string getThisThreadName() { |
| 70 | char name[32]; |
| 71 | #ifdef HAS_NP_FUNCTIONS |
| 72 | pthread_t thread = pthread_self(); |
| 73 | pthread_getname_np(thread, name, sizeof(name)); |
| 74 | #else |
| 75 | prctl(PR_GET_NAME, name, 0, 0, 0); |
| 76 | #endif |
| 77 | return name; |
| 78 | } |
| 79 | |
| 80 | // ===================================================================== |
| 81 | // -- Other member functions ------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected