Optimizations to thread pool. Changed call queues thread
[crypto.git] / lib / silcutil / tests / test_silcthread.c
index 6305d7c100b2eede7934e1b81fe12d2cdfa54d87..d59ed4e043066bea2b2a6e3e131e8def680aa8db 100644 (file)
@@ -46,13 +46,13 @@ int main(int argc, char **argv)
   tp = silc_thread_pool_alloc(NULL, 0, 2, FALSE);
   if (!tp)
     goto err;
-  for (i = 0; i < 4; i++) {
+  for (i = 0; i < 6; i++) {
     SILC_LOG_DEBUG(("Run thread %d", i + 1));
     if (!silc_thread_pool_run(tp, TRUE, NULL, func, (void *) i + 1,
                              compl, (void *)i + 1))
       goto err;
   }
-  sleep(4);
+  sleep(6);
   SILC_LOG_DEBUG(("Stop thread pool"));
   silc_thread_pool_free(tp, TRUE);