diff AnimationMaster.c @ 289:744b5ff9851e

Merge
author Sean Halle <seanhalle@yahoo.com>
date Thu, 05 Sep 2013 18:08:14 -0700
parents 15ee3fe10e3d 7b6f8cf08b1f
children c63b498d0a00
line diff
     1.1 --- a/AnimationMaster.c	Thu Sep 05 18:05:11 2013 -0700
     1.2 +++ b/AnimationMaster.c	Thu Sep 05 18:08:14 2013 -0700
     1.3 @@ -34,6 +34,9 @@
     1.4  inline void
     1.5  handleThrowException( PRServiceReq *langReq, PRLangEnv *protoLangEnv );
     1.6  
     1.7 +void
     1.8 +debug_print_req(AnimSlot *slot, PRReqst *req);
     1.9 +
    1.10  //===========================================================================
    1.11  
    1.12  /*Note: there used to be a coreController that was another animation 
    1.13 @@ -73,7 +76,6 @@
    1.14     if( slot->workIsDone )
    1.15      { slot->workIsDone = FALSE;
    1.16        slot->needsWorkAssigned = TRUE;
    1.17 -//printf("top handle request: %d | reqType: %d\n", slot->coreSlotIsOn, (int32)req->reqType );fflush(stdin);
    1.18        
    1.19           //An Idle VP has no request to handle, so skip to assign..
    1.20        if( slot->slaveAssignedToSlot->typeOfVP != IdleVP && 
    1.21 @@ -592,3 +594,27 @@
    1.22     (*protoLangEnv->makeSlaveReadyFn)( langReq->requestingSlv, PR_int__give_lang_env(protoLangEnv) );
    1.23   }
    1.24  
    1.25 +void
    1.26 +debug_print_req(AnimSlot *slot, PRReqst *req)
    1.27 + {
    1.28 +   if(dbgMaster)
    1.29 +       { printf("top handle request: %d | reqType: ", slot->coreSlotIsOn );
    1.30 +         switch(req->reqType)
    1.31 +          { case TaskCreate: printf("TaskCreate \n"); break;
    1.32 +            case TaskEnd: printf("TaskEnd \n"); break;
    1.33 +            case   SlvCreate: printf("SlvCreate \n"); break;
    1.34 +            case SlvDissipate: printf("SlvDissipate \n"); break;
    1.35 +            case Language: printf("Language \n"); break;
    1.36 +            case Service: printf("Service \n"); break;
    1.37 +            case Hardware: printf("Hardware \n"); break;
    1.38 +            case IO: printf("IO \n"); break;
    1.39 +            case OSCall: printf("OSCall \n"); break;
    1.40 +            case LangShutdown: printf("LangShutdown \n"); break;
    1.41 +            case ProcessEnd: printf("ProcessEnd \n"); break;
    1.42 +            case PRShutdown: printf("PRShutdown \n"); break;
    1.43 +          } 
    1.44 +         fflush(stdin);
    1.45 +       }
    1.46 + }
    1.47 +
    1.48 +