Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > Vthread_impls > Vthread_MC_shared_impl
changeset 22:a6b1b0946c8a V0
added file -- moved lang-specific meas macros from VMS.h to this file
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 07 Dec 2011 05:17:02 +0100 |
| parents | bb2500771be8 |
| children | f81d6df5313e |
| files | VMS_lang_specific_defines.h |
| diffstat | 1 files changed, 46 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/VMS_lang_specific_defines.h Wed Dec 07 05:17:02 2011 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/* 1.5 + * File: VPThread_helper.h 1.6 + * Author: msach 1.7 + * 1.8 + * Created on June 10, 2011, 12:20 PM 1.9 + */ 1.10 + 1.11 +#include "VMS/VMS.h" 1.12 +#include "VPThread.h" 1.13 + 1.14 +#ifndef VMS_lang_specific_defines_H 1.15 +#define VMS_lang_specific_defines_H 1.16 + 1.17 + 1.18 +#ifdef MAKE_HISTS_FOR_MEASUREMENTS 1.19 +#define createHistIdx 1 1.20 +#define mutexLockHistIdx 2 1.21 +#define mutexUnlockHistIdx 3 1.22 +#define condWaitHistIdx 4 1.23 +#define condSignalHistIdx 5 1.24 + 1.25 +#define MakeTheMeasHists() \ 1.26 + _VMSMasterEnv->measHistsInfo = \ 1.27 + makePrivDynArrayOfSize( (void***)&(_VMSMasterEnv->measHists), 200); \ 1.28 + makeAMeasHist( createHistIdx, "create", 250, 0, 100 ) \ 1.29 + makeAMeasHist( mutexLockHistIdx, "mutex_lock", 50, 0, 100 ) \ 1.30 + makeAMeasHist( mutexUnlockHistIdx, "mutex_unlock", 50, 0, 100 ) \ 1.31 + makeAMeasHist( condWaitHistIdx, "cond_wait", 50, 0, 100 ) \ 1.32 + makeAMeasHist( condSignalHistIdx, "cond_signal", 50, 0, 100 ) 1.33 +#else 1.34 +#define MakeTheMeasHists() 1.35 +#endif 1.36 + 1.37 +#ifdef MEAS__TIME_PLUGIN 1.38 +#define Meas_startCreate \ 1.39 + int32 startStamp, endStamp; \ 1.40 + saveLowTimeStampCountInto( startStamp ); \ 1.41 + 1.42 +#define Meas_endCreate \ 1.43 + saveLowTimeStampCountInto( endStamp ); \ 1.44 + addIntervalToHist( startStamp, endStamp, \ 1.45 + _VMSMasterEnv->measHists[ createHistIdx ] ); 1.46 +#endif 1.47 + 1.48 +#endif /* VPTHREAD_HELPER_H */ 1.49 +
