diff 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
line diff
     1.1 --- a/VMS.h	Sat Oct 30 20:55:39 2010 -0700
     1.2 +++ b/VMS.h	Sat Oct 30 21:53:55 2010 -0700
     1.3 @@ -27,6 +27,11 @@
     1.4     // has only a single thread and animates VPs one at a time
     1.5  //#define SEQUENTIAL
     1.6  
     1.7 +   //turns on the probe-instrumentation in the application -- when not
     1.8 +   // defined, the calls to the probe functions turn into comments
     1.9 +#define STATS__ENABLE_PROBES
    1.10 +
    1.11 +
    1.12  #define PRINT_DEBUG(msg)// printf(msg); fflush(stdin);
    1.13  #define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin);
    1.14  #define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin);
    1.15 @@ -279,6 +284,9 @@
    1.16  void
    1.17  VMS__send_create_procr_req( void *semReqData, VirtProcr *reqstingPr );
    1.18  
    1.19 +inline void
    1.20 +VMS__send_VMSSem_request( void *semReqData, VirtProcr *callingPr );
    1.21 +
    1.22  void
    1.23  VMS__free_request( VMSReqst *req );
    1.24  
    1.25 @@ -286,22 +294,22 @@
    1.26  VMS__remove_and_free_top_request( VirtProcr *reqstingPr );
    1.27  
    1.28  VMSReqst *
    1.29 -VMS__take_top_request_from( VirtProcr *reqstingPr );
    1.30 -
    1.31 -VMSReqst *
    1.32  VMS__take_next_request_out_of( VirtProcr *procrWithReq );
    1.33  
    1.34  inline void *
    1.35  VMS__take_sem_reqst_from( VMSReqst *req );
    1.36 -
    1.37 -inline int
    1.38 -VMS__isSemanticReqst( VMSReqst *req );
    1.39 -
    1.40 -inline int
    1.41 -VMS__isDissipateReqst( VMSReqst *req );
    1.42 -
    1.43 -inline int
    1.44 -VMS__isCreateReqst( VMSReqst *req );
    1.45 +//
    1.46 +//VMSReqst *
    1.47 +//VMS__take_top_request_from( VirtProcr *reqstingPr );
    1.48 +//
    1.49 +//inline int
    1.50 +//VMS__isSemanticReqst( VMSReqst *req );
    1.51 +//
    1.52 +//inline int
    1.53 +//VMS__isDissipateReqst( VMSReqst *req );
    1.54 +//
    1.55 +//inline int
    1.56 +//VMS__isCreateReqst( VMSReqst *req );
    1.57  
    1.58  //==========================
    1.59