| 137 | } |
| 138 | |
| 139 | void ThreadBase::threadEntryBase() { |
| 140 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nullptr); |
| 141 | pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, nullptr); |
| 142 | #ifdef HAS_NP_FUNCTIONS |
| 143 | pthread_setname_np(_thread, _name.c_str()); |
| 144 | #else |
| 145 | prctl(PR_SET_NAME, _name.c_str(), 0, 0, 0); |
| 146 | #endif |
| 147 | try { |
| 148 | threadEntry(); |
| 149 | _exit = true; |
| 150 | } catch (...) { |
| 151 | SI_LOG_ERROR("%s: Catched an exception", _name.c_str()); |
| 152 | _exit = true; |
| 153 | throw; |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | } // namespace base |
nothing calls this directly
no outgoing calls
no test coverage detected