]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#883, !506] fixed comments
authorRazvan Becheriu <razvan@isc.org>
Wed, 11 Sep 2019 12:05:34 +0000 (15:05 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 6 Nov 2019 17:32:51 +0000 (19:32 +0200)
src/lib/dhcpsrv/tests/thread_pool_unittest.cc

index ca81f653d9157b0e66aefb3f0a28f0725ab3fd76..69d8cb4b60a37f4cb63e1f7f37a3e647d4751e4b 100644 (file)
@@ -189,7 +189,9 @@ TEST_F(ThreadPoolTest, testAddAndCount) {
     uint32_t items_count;
     ThreadPool::WorkItemCallBack call_back;
     ThreadPool thread_pool;
+    // the item count should be 0
     ASSERT_EQ(thread_pool.count(), 0);
+    // the thread count should be 0
     ASSERT_EQ(thread_pool.size(), 0);
 
     items_count = 4;
@@ -210,7 +212,10 @@ TEST_F(ThreadPoolTest, testCreateAndDestroy) {
     uint32_t thread_count;
     ThreadPool::WorkItemCallBack call_back;
     ThreadPool thread_pool;
+    // the item count should be 0
     ASSERT_EQ(thread_pool.count(), 0);
+    // the thread count should be 0
+    ASSERT_EQ(thread_pool.size(), 0);
 
     items_count = 4;
     thread_count = 4;
@@ -218,7 +223,7 @@ TEST_F(ThreadPoolTest, testCreateAndDestroy) {
     reset(thread_count);
 
     // create tasks which block thread pool threads until signaled by main
-    // to force all threads of the thread pool to run exactly one task
+    // thread to force all threads of the thread pool to run exactly one task
     call_back = std::bind(&ThreadPoolTest::runAndWait, this);
 
     // add items to stopped thread pool
@@ -373,7 +378,10 @@ TEST_F(ThreadPoolTest, testStartAndStop) {
     uint32_t thread_count;
     ThreadPool::WorkItemCallBack call_back;
     ThreadPool thread_pool;
+    // the item count should be 0
     ASSERT_EQ(thread_pool.count(), 0);
+    // the thread count should be 0
+    ASSERT_EQ(thread_pool.size(), 0);
 
     items_count = 4;
     thread_count = 4;
@@ -381,7 +389,7 @@ TEST_F(ThreadPoolTest, testStartAndStop) {
     reset(thread_count);
 
     // create tasks which block thread pool threads until signaled by main
-    // to force all threads of the thread pool to run exactly one task
+    // thread to force all threads of the thread pool to run exactly one task
     call_back = std::bind(&ThreadPoolTest::runAndWait, this);
 
     // calling start should create the threads and should keep the queued items