Fixed issue with running and gracefully terminating net_test_router application.
[keystone-rtos/netapi.git] / ti / runtime / netapi / test / net_test_thread_utils.c
index 91346435053e18d953058b6bb2ffb00c5fef4152..e695641ad2d5689ca5b7c23a05803132b5bf5b7f 100755 (executable)
@@ -67,7 +67,7 @@ void netTest_utilCreateSpFpThreads(uint8_t num_sp_threads,NET_TEST_FUNC_PTR slow
     for (i = 0; i < num_sp_threads; i++)
     {
         if (pthread_create( &sp_threads[i], NULL, (void*)slow_path_thread,
-                    (void *) netTestCfg.sp_thread_num[i]))
+                    (void *) i))
         {
             perror( "pthread_create" );
             exit(1);
@@ -82,7 +82,7 @@ void netTest_utilCreateSpFpThreads(uint8_t num_sp_threads,NET_TEST_FUNC_PTR slow
     for (i = 0; i < num_fp_threads; i++)
     {
         if (pthread_create( &fp_threads[i], NULL, (void*)fast_path_thread,
-                    (void *) netTestCfg.fp_thread_num[i]))
+                    (void *) i))
         {
             perror( "pthread_create" );
             exit(1);