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

Method TestAdaptivePool

util/thread/factory_ut.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 inline void TestAdaptivePool() {
41 TRunAble r;
42
43 {
44 TAdaptiveThreadPool pool;
45
46 pool.Start(0);
47
48 THolder<IThreadFactory::IThread> thr = pool.Run(&r);
49
50 thr->Join();
51 }
52
53 UNIT_ASSERT_EQUAL(r.done, true);
54 }
55};
56
57UNIT_TEST_SUITE_REGISTRATION(TThrPoolTest);

Callers

nothing calls this directly

Calls 3

StartMethod · 0.45
RunMethod · 0.45
JoinMethod · 0.45

Tested by

no test coverage detected