Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 52:f59cfa31a579
fixed up probes just a bit
| author | Me |
|---|---|
| date | Sat, 30 Oct 2010 21:53:55 -0700 |
| parents | 8f7141a9272e |
| children | 42dd44df1bb0 420a09d3f32a |
comparison
equal
deleted
inserted
replaced
| 19:f965ee07e901 | 20:6174d99dfaab |
|---|---|
| 24 //=============================== Debug =================================== | 24 //=============================== Debug =================================== |
| 25 //When SEQUENTIAL is defined, VMS does sequential exe in the main thread | 25 //When SEQUENTIAL is defined, VMS does sequential exe in the main thread |
| 26 // It still does co-routines and all the mechanisms are the same, it just | 26 // It still does co-routines and all the mechanisms are the same, it just |
| 27 // has only a single thread and animates VPs one at a time | 27 // has only a single thread and animates VPs one at a time |
| 28 //#define SEQUENTIAL | 28 //#define SEQUENTIAL |
| 29 | |
| 30 //turns on the probe-instrumentation in the application -- when not | |
| 31 // defined, the calls to the probe functions turn into comments | |
| 32 #define STATS__ENABLE_PROBES | |
| 33 | |
| 29 | 34 |
| 30 #define PRINT_DEBUG(msg)// printf(msg); fflush(stdin); | 35 #define PRINT_DEBUG(msg)// printf(msg); fflush(stdin); |
| 31 #define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin); | 36 #define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin); |
| 32 #define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin); | 37 #define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin); |
| 33 | 38 |
| 277 VMS__add_sem_request( void *semReqData, VirtProcr *callingPr ); | 282 VMS__add_sem_request( void *semReqData, VirtProcr *callingPr ); |
| 278 | 283 |
| 279 void | 284 void |
| 280 VMS__send_create_procr_req( void *semReqData, VirtProcr *reqstingPr ); | 285 VMS__send_create_procr_req( void *semReqData, VirtProcr *reqstingPr ); |
| 281 | 286 |
| 287 inline void | |
| 288 VMS__send_VMSSem_request( void *semReqData, VirtProcr *callingPr ); | |
| 289 | |
| 282 void | 290 void |
| 283 VMS__free_request( VMSReqst *req ); | 291 VMS__free_request( VMSReqst *req ); |
| 284 | 292 |
| 285 void | 293 void |
| 286 VMS__remove_and_free_top_request( VirtProcr *reqstingPr ); | 294 VMS__remove_and_free_top_request( VirtProcr *reqstingPr ); |
| 287 | |
| 288 VMSReqst * | |
| 289 VMS__take_top_request_from( VirtProcr *reqstingPr ); | |
| 290 | 295 |
| 291 VMSReqst * | 296 VMSReqst * |
| 292 VMS__take_next_request_out_of( VirtProcr *procrWithReq ); | 297 VMS__take_next_request_out_of( VirtProcr *procrWithReq ); |
| 293 | 298 |
| 294 inline void * | 299 inline void * |
| 295 VMS__take_sem_reqst_from( VMSReqst *req ); | 300 VMS__take_sem_reqst_from( VMSReqst *req ); |
| 296 | 301 // |
| 297 inline int | 302 //VMSReqst * |
| 298 VMS__isSemanticReqst( VMSReqst *req ); | 303 //VMS__take_top_request_from( VirtProcr *reqstingPr ); |
| 299 | 304 // |
| 300 inline int | 305 //inline int |
| 301 VMS__isDissipateReqst( VMSReqst *req ); | 306 //VMS__isSemanticReqst( VMSReqst *req ); |
| 302 | 307 // |
| 303 inline int | 308 //inline int |
| 304 VMS__isCreateReqst( VMSReqst *req ); | 309 //VMS__isDissipateReqst( VMSReqst *req ); |
| 310 // | |
| 311 //inline int | |
| 312 //VMS__isCreateReqst( VMSReqst *req ); | |
| 305 | 313 |
| 306 //========================== | 314 //========================== |
| 307 | 315 |
| 308 void inline | 316 void inline |
| 309 VMS__dissipate_procr( VirtProcr *prToDissipate ); | 317 VMS__dissipate_procr( VirtProcr *prToDissipate ); |
