Fixed a bug in test thread_pool: the second run can lead to a deadlock
authorkhizmax <libcds.dev@gmail.com>
Fri, 3 Jun 2016 05:34:35 +0000 (08:34 +0300)
committerkhizmax <libcds.dev@gmail.com>
Fri, 3 Jun 2016 05:34:35 +0000 (08:34 +0300)
test/include/cds_test/thread.h

index 8d2f55a8120876e0b8da15104d9aba320444fe6b..dd9b0a16e47dc3b1b0166231addfcff2e28c4fca 100644 (file)
@@ -195,6 +195,7 @@ namespace cds_test {
             m_bRunning = false;
             m_bStopped = false;
             m_doneCount = 0;
+            m_readyCount = 0;
         }
 
     protected: // thread interface