MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / threadEntryBase

Method threadEntryBase

src/base/ThreadBase.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected