# HG changeset patch # User Sean Halle # Date 1345922541 25200 # Node ID c87e1925f7b2e3e4595adf9678fd571c529563eb # Parent 022f45f9703c2f5bab88e3d8dba3eea2a3aef2e5 works, with test app sending in a chain, in mult-threaded mode diff -r 022f45f9703c -r c87e1925f7b2 Design_Notes.txt --- a/Design_Notes.txt Fri Aug 17 17:19:35 2012 -0700 +++ b/Design_Notes.txt Sat Aug 25 12:22:21 2012 -0700 @@ -1,3 +1,6 @@ +0x7ffff644ab60 +0x7ffff64487f0 +0x7ffff644b0a0 This test app has to exercise all the aspects of the request handling and the assigner code. diff -r 022f45f9703c -r c87e1925f7b2 VSs__Test_App/SeedVP.c --- a/VSs__Test_App/SeedVP.c Fri Aug 17 17:19:35 2012 -0700 +++ b/VSs__Test_App/SeedVP.c Sat Aug 25 12:22:21 2012 -0700 @@ -11,8 +11,9 @@ #include #include "VSs__Test_App.h" -/*Global vars are part of the hello world task type.. ctld args MUST always - * be the first ones in the array*/ +/*Global vars -- part of def of hello world task type.. just dummies to + * illustrate how to do it. + *NOTE: ctld args MUST always be the first ones in the array*/ int32 testAppArgTypes[3] = {IN, NONCTLD, NONCTLD }; int32 testAppArgSizes[3] = {16*16*sizeof(float), sizeof(int32), sizeof(int32)}; @@ -37,6 +38,7 @@ for( i = 0; i < 5; i++ ) { args.controlledArg = VMS_App__malloc( testAppTaskType->argSizes[0] ); + args.controlledArg[0] = (float)i; args.taskNum = i; args.numTasks = 5; taskID = VSs__create_taskID_of_size( 1, animSlv ); diff -r 022f45f9703c -r c87e1925f7b2 VSs__Test_App/Task.c --- a/VSs__Test_App/Task.c Fri Aug 17 17:19:35 2012 -0700 +++ b/VSs__Test_App/Task.c Sat Aug 25 12:22:21 2012 -0700 @@ -29,11 +29,10 @@ if( receiveFromTaskID[1] >= 0 ) VSs__receive_from_to( receiveFromTaskID, selfTaskID, animSlv ); + printf("Hello World: %f, %d\n", args->controlledArg[0], selfTaskID[1]); + fflush(stdout); if( sendToTaskID[1] < numTasks ) VSs__send_from_to( NULL, selfTaskID, sendToTaskID, animSlv ); - printf("Hello World: %llu, %d", (uint64)args->controlledArg, args->taskNum); - - fflush(stdout); VSs__end_task( animSlv ); }