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

Function Y_UNIT_TEST

util/system/thread_ut.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 };
33
34 Y_UNIT_TEST(TestThreadId) {
35 TIdTester tst;
36 TThread thr(tst.DoRun, &tst);
37
38 tst.Thr = &thr;
39
40 thr.Start();
41 thr.Join();
42
43 UNIT_ASSERT_EQUAL(tst.Cur, tst.Real);
44 UNIT_ASSERT(tst.Cur != 0);
45 UNIT_ASSERT(tst.Numeric != 0);
46 UNIT_ASSERT(tst.Numeric != tst.Real);
47 }
48
49 void* ThreadProc(void*) {
50 TThread::SetCurrentThreadName("CurrentThreadSetNameTest");

Callers

nothing calls this directly

Calls 6

TParamsClass · 0.70
moveFunction · 0.50
StartMethod · 0.45
JoinMethod · 0.45
SetNameMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected