| 82 | } |
| 83 | |
| 84 | TEST(ThreadTest, BasicTest) { |
| 85 | ThreadPool pool; |
| 86 | EXPECT_EQ(std::thread::hardware_concurrency(), |
| 87 | static_cast<decltype(std::thread::hardware_concurrency())>( |
| 88 | pool.getThreadNum())); |
| 89 | ThreadPool pool1(2); |
| 90 | EXPECT_EQ(2, pool1.getThreadNum()); |
| 91 | |
| 92 | TestBasic(pool); |
| 93 | |
| 94 | ThreadPool tp(std::thread::hardware_concurrency(), |
| 95 | /*enableWorkSteal = */ true); |
| 96 | TestBasic(tp); |
| 97 | } |
| 98 | |
| 99 | } // namespace async_simple |
nothing calls this directly
no test coverage detected