# HG changeset patch # User Some Random Person # Date 1337870061 25200 # Node ID 5ed4d833506ee143f180ac283b9be43093a5c8dd # Parent 67a3a05a39c01e7d4f68f77013c33393377f3a45 Started putting in some VSs impl -- still mostly SSR copy diff -r 67a3a05a39c0 -r 5ed4d833506e VSs.h --- a/VSs.h Wed May 23 13:17:07 2012 -0700 +++ b/VSs.h Thu May 24 07:34:21 2012 -0700 @@ -29,9 +29,24 @@ /*This header defines everything specific to the VOMP semantic plug-in */ typedef struct _VOMPSemReq VOMPSemReq; -typedef void (*PtrToAtomicFn ) ( void * ); //executed atomically in master +typedef void (*VSsTaskFnPtr ) ( void * ); //executed atomically in master //=========================================================================== +#define IN 1; +#define OUT 2; +#define INOUT 3; + +typedef struct + { + VSsTaskFnPtr fn; + int32 numArgs; + int32 *argTypes; + int32 *argSizes; + } +VSsTaskType; + + + /*Semantic layer-specific data sent inside a request from lib called in app * to request handler called in AnimationMaster */ diff -r 67a3a05a39c0 -r 5ed4d833506e VSs_Request_Handlers.c --- a/VSs_Request_Handlers.c Wed May 23 13:17:07 2012 -0700 +++ b/VSs_Request_Handlers.c Thu May 24 07:34:21 2012 -0700 @@ -64,26 +64,11 @@ //=========================================================================== -/*The semantic request has the receiving processor and the message type - * - *Note one value in this approach: without the extra VMS layer, - * the send and receive would happen in real time instead of virtual time, - * which would waste real time while one of them waited for other - * - *When successfully pair-up, transfer ownership of the sent data - * to the receiving processor - * - *Messages of a given Type have to be kept separate.. so need a separate - * entry in the hash table for each pair: receivePr, msgType - * - *Also, if same sender sends multiple before any get received, then need to - * stack the sends up -- even if a send waits until it's paired, several - * separate processors can send to the same receiver, and hashing on the - * receive processor, so they will stack up. +/* */ void -handleSendType( VOMPSemReq *semReq, VOMPSemEnv *semEnv ) - { SlaveVP *sendPr, *receivePr; +handleSubmitTask( VOMPSemReq *semReq, VOMPSemEnv *semEnv ) + { SlaveVP *sendPr; int key[] = {0,0,0}; VOMPSemReq *waitingReq; HashEntry *entry;