Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff VMS.h @ 54:f8508572f3de
Added boolean guarded debug messages and VMS__throw_exception
| author | Me |
|---|---|
| date | Tue, 02 Nov 2010 16:43:01 -0700 |
| parents | 42dd44df1bb0 |
| children | 3bac84e4e56e 85b731b290f8 |
line diff
1.1 --- a/VMS.h Mon Nov 01 21:21:32 2010 -0700 1.2 +++ b/VMS.h Tue Nov 02 16:43:01 2010 -0700 1.3 @@ -22,6 +22,10 @@ 1.4 1.5 1.6 //=============================== Debug =================================== 1.7 + //These defines turn types of bug messages on and off 1.8 +#define dbgProbes FALSE 1.9 +#define dbgAppFlow FALSE 1.10 + 1.11 //When SEQUENTIAL is defined, VMS does sequential exe in the main thread 1.12 // It still does co-routines and all the mechanisms are the same, it just 1.13 // has only a single thread and animates VPs one at a time 1.14 @@ -32,7 +36,8 @@ 1.15 #define STATS__ENABLE_PROBES 1.16 1.17 1.18 -#define PRINT_DEBUG(msg)// printf(msg); fflush(stdin); 1.19 +#define DEBUG(msg)// printf(msg); fflush(stdin); 1.20 +#define DEBUG_MSG( bool, msg) //if( bool){ printf(msg); fflush(stdin);} 1.21 #define PRINT1_DEBUG(msg, param) //printf(msg, param); fflush(stdin); 1.22 #define PRINT2_DEBUG(msg, p1, p2) //printf(msg, p1, p2); fflush(stdin); 1.23 1.24 @@ -40,7 +45,6 @@ 1.25 #define PRINT1_ERROR(msg, param) printf(msg, param); fflush(stdin); 1.26 #define PRINT2_ERROR(msg, p1, p2) printf(msg, p1, p2); fflush(stdin); 1.27 1.28 - 1.29 //=========================== STATS ======================= 1.30 1.31 //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and 1.32 @@ -67,11 +71,11 @@ 1.33 1.34 #define MASTERLOCK_RETRIES 10000 1.35 1.36 - // stack 1.37 -#define VIRT_PROCR_STACK_SIZE 0x4000 1.38 + // stack size in virtual processors created 1.39 +#define VIRT_PROCR_STACK_SIZE 0x4000 /* 16K */ 1.40 1.41 - // memory for VMS__malloc -- 256M 1.42 -#define MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE 0x10000000 1.43 + // memory for VMS__malloc 1.44 +#define MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE 0x10000000 /* 256M */ 1.45 1.46 1.47 //============================== 1.48 @@ -212,7 +216,12 @@ 1.49 } 1.50 MasterEnv; 1.51 1.52 +//============================= 1.53 +typedef struct 1.54 + { 1.55 1.56 + } 1.57 +VMSExcp; 1.58 1.59 1.60 //======================= OS Thread related =============================== 1.61 @@ -274,6 +283,9 @@ 1.62 VMS_ext__dissipate_procr( VirtProcr *procrToDissipate ); 1.63 1.64 void 1.65 +VMS__throw_exception( char *msgStr, VirtProcr *reqstPr, VMSExcp *excpData ); 1.66 + 1.67 +void 1.68 VMS__shutdown(); 1.69 1.70 void
