Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff AnimationMaster.c @ 285:7b6f8cf08b1f
Minor -- gave malloc its own lock and renamed TopLevelFn to BirthFn
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 12 Jun 2013 14:12:06 -0700 |
| parents | 72ffdb11ad8e |
| children | 744b5ff9851e |
line diff
1.1 --- a/AnimationMaster.c Wed May 22 17:40:23 2013 -0700 1.2 +++ b/AnimationMaster.c Wed Jun 12 14:12:06 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 @@ -86,6 +88,7 @@ 1.22 //process the request made by the slave (held inside slave struc) 1.23 slave = slot->slaveAssignedToSlot; 1.24 req = slave->request; 1.25 + debug_print_req(slot, req); 1.26 1.27 //If the requesting slave is a slot slave, and request is not 1.28 // task-end, then turn it into a free task slave & continue 1.29 @@ -592,3 +595,27 @@ 1.30 (*protoLangEnv->makeSlaveReadyFn)( langReq->requestingSlv, PR_int__give_lang_env(protoLangEnv) ); 1.31 } 1.32 1.33 +void 1.34 +debug_print_req(AnimSlot *slot, PRReqst *req) 1.35 + { 1.36 + if(dbgMaster) 1.37 + { printf("top handle request: %d | reqType: ", slot->coreSlotIsOn ); 1.38 + switch(req->reqType) 1.39 + { case TaskCreate: printf("TaskCreate \n"); break; 1.40 + case TaskEnd: printf("TaskEnd \n"); break; 1.41 + case SlvCreate: printf("SlvCreate \n"); break; 1.42 + case SlvDissipate: printf("SlvDissipate \n"); break; 1.43 + case Language: printf("Language \n"); break; 1.44 + case Service: printf("Service \n"); break; 1.45 + case Hardware: printf("Hardware \n"); break; 1.46 + case IO: printf("IO \n"); break; 1.47 + case OSCall: printf("OSCall \n"); break; 1.48 + case LangShutdown: printf("LangShutdown \n"); break; 1.49 + case ProcessEnd: printf("ProcessEnd \n"); break; 1.50 + case PRShutdown: printf("PRShutdown \n"); break; 1.51 + } 1.52 + fflush(stdin); 1.53 + } 1.54 + } 1.55 + 1.56 +
