MCPcopy Create free account
hub / github.com/catboost/catboost / Impl

Function Impl

util/system/thread.cpp:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258 template <class T>
259 static inline typename T::TValueType* Impl(T& t, const char* op, bool check = true) {
260 if (!t) {
261 ythrow yexception() << "can not " << op << " dead thread";
262 }
263
264 if (t->Running() != check) {
265 static const char* const msg[] = {"running", "not running"};
266
267 ythrow yexception() << "can not " << op << " " << msg[check] << " thread";
268 }
269
270 return t.Get();
271 }
272} // namespace
273
274class TThread::TImpl: public TThreadBase {

Callers 3

StartMethod · 0.70
CaseInsensitiveHashFunction · 0.50

Calls 2

RunningMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected