Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__Test_App__LangDev
changeset 4:c87e1925f7b2
works, with test app sending in a chain, in mult-threaded mode
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Sat, 25 Aug 2012 12:22:21 -0700 |
| parents | 022f45f9703c |
| children | 2d955ed916ef |
| files | Design_Notes.txt VSs__Test_App/SeedVP.c VSs__Test_App/Task.c |
| diffstat | 3 files changed, 9 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/Design_Notes.txt Fri Aug 17 17:19:35 2012 -0700 1.2 +++ b/Design_Notes.txt Sat Aug 25 12:22:21 2012 -0700 1.3 @@ -1,3 +1,6 @@ 1.4 +0x7ffff644ab60 1.5 +0x7ffff64487f0 1.6 +0x7ffff644b0a0 1.7 1.8 This test app has to exercise all the aspects of the request handling 1.9 and the assigner code.
2.1 --- a/VSs__Test_App/SeedVP.c Fri Aug 17 17:19:35 2012 -0700 2.2 +++ b/VSs__Test_App/SeedVP.c Sat Aug 25 12:22:21 2012 -0700 2.3 @@ -11,8 +11,9 @@ 2.4 #include <string.h> 2.5 #include "VSs__Test_App.h" 2.6 2.7 -/*Global vars are part of the hello world task type.. ctld args MUST always 2.8 - * be the first ones in the array*/ 2.9 +/*Global vars -- part of def of hello world task type.. just dummies to 2.10 + * illustrate how to do it. 2.11 + *NOTE: ctld args MUST always be the first ones in the array*/ 2.12 int32 testAppArgTypes[3] = {IN, NONCTLD, NONCTLD }; 2.13 int32 testAppArgSizes[3] = {16*16*sizeof(float), sizeof(int32), sizeof(int32)}; 2.14 2.15 @@ -37,6 +38,7 @@ 2.16 for( i = 0; i < 5; i++ ) 2.17 { 2.18 args.controlledArg = VMS_App__malloc( testAppTaskType->argSizes[0] ); 2.19 + args.controlledArg[0] = (float)i; 2.20 args.taskNum = i; 2.21 args.numTasks = 5; 2.22 taskID = VSs__create_taskID_of_size( 1, animSlv );
3.1 --- a/VSs__Test_App/Task.c Fri Aug 17 17:19:35 2012 -0700 3.2 +++ b/VSs__Test_App/Task.c Sat Aug 25 12:22:21 2012 -0700 3.3 @@ -29,11 +29,10 @@ 3.4 3.5 if( receiveFromTaskID[1] >= 0 ) 3.6 VSs__receive_from_to( receiveFromTaskID, selfTaskID, animSlv ); 3.7 + printf("Hello World: %f, %d\n", args->controlledArg[0], selfTaskID[1]); 3.8 + fflush(stdout); 3.9 if( sendToTaskID[1] < numTasks ) 3.10 VSs__send_from_to( NULL, selfTaskID, sendToTaskID, animSlv ); 3.11 - printf("Hello World: %llu, %d", (uint64)args->controlledArg, args->taskNum); 3.12 - 3.13 - fflush(stdout); 3.14 3.15 VSs__end_task( animSlv ); 3.16 }
