tests/threadpool_unit_test.cc
TEST_F(ThreadPoolUnitTest, SingleTask) {
  std::future<int> add_future = threadpool_.Submit(std::bind(test_add, 1, 1));
  int res = add_future.get();
  EXPECT_EQ(res, 2);
}
// Basic test that a single task can be accomplished via the threadpool
Basic test that a single task can be accomplished via the threadpool
Basic test that a single task can be accomplished via the threadpool
TEST_F(ThreadPoolUnitTest, SingleTask) {
  std::future<int> add_future = threadpool_.Submit(std::bind(test_add, 1, 1));
  int res = add_future.get();
  EXPECT_EQ(res, 2);
}
TEST_F ( ThreadPoolUnitTest , SingleTask ) { std :: future < int > add_future = threadpool_ . Submit ( std :: bind ( test_add , 1 , 1 ) ) ; int res = add_future . get ( ) ; EXPECT_EQ ( res , 2 ) ; }
Basic test that a single task can be accomplished via the threadpool
Basic test that a single task can be accomplished via the threadpool