SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [58/72]

SpicesTest::TEST_F ( ThreadPoolFixed_test ,
Initialize  )

Testing if initialize successfully.

Definition at line 95 of file ThreadPoolFixed_test.h.

95 {
96
98
99 std::cout << "Hardware threads: " << nThreads << std::endl;
100
101 EXPECT_EQ(m_ThreadPool.GetInitThreadSize() ,nThreads );
102 EXPECT_EQ(m_ThreadPool.GetIdleThreadSize() ,nThreads );
103 EXPECT_EQ(m_ThreadPool.GetPoolMode() ,Spices::PoolMode::MODE_FIXED );
104 EXPECT_EQ(m_ThreadPool.GetTasks() ,0 );
105 EXPECT_EQ(m_ThreadPool.GetThreadsCount() ,nThreads );
106 EXPECT_EQ(m_ThreadPool.GetThreadIdleTimeOut(),Spices::THREAD_MAX_IDLE_TIME );
107 EXPECT_EQ(m_ThreadPool.IsPoolRunning() ,true );
108 }
#define SPICESTEST_PROFILE_FUNCTION()
constexpr uint32_t THREAD_MAX_IDLE_TIME