comparison Vthread.h @ 29:b94dc57e4455

refactored many files -- chgd names, moved code around -- doesn't compile
author Some Random Person <seanhalle@yahoo.com>
date Wed, 09 May 2012 13:24:19 -0700
parents b3a881f25c5a
children
comparison
equal deleted inserted replaced
1:3d63ec35bee9 2:72fca506084d
21 21
22 22
23 //=========================================================================== 23 //===========================================================================
24 //turn on the counter measurements of language overhead -- comment to turn off 24 //turn on the counter measurements of language overhead -- comment to turn off
25 #define MEAS__TURN_ON_LANG_MEAS 25 #define MEAS__TURN_ON_LANG_MEAS
26 #include "Vthread_Overhead_Meas.h" 26 #include "Vthread__Measurement.h"
27 27
28 #define INIT_NUM_MUTEX 10000 28 #define INIT_NUM_MUTEX 10000
29 #define INIT_NUM_COND 10000 29 #define INIT_NUM_COND 10000
30 30
31 #define NUM_STRUCS_IN_SEM_ENV 1000 31 #define NUM_STRUCS_IN_SEM_ENV 1000
157 157
158 VthdTrans transactionStrucs[NUM_STRUCS_IN_SEM_ENV]; 158 VthdTrans transactionStrucs[NUM_STRUCS_IN_SEM_ENV];
159 } 159 }
160 VthdSemEnv; 160 VthdSemEnv;
161 161
162 //==========================================================================
163
164 void
165 Vthread__init();
166
167 void
168 Vthread__init_Seq();
169
170 void
171 Vthread__init_Helper();
172
162 173
163 //=========================================================================== 174 //===========================================================================
164 175
165 inline void 176 inline void
166 Vthread__create_seed_slaveVP_and_do_work( TopLevelFnPtr fn, void *initData ); 177 Vthread__create_seed_slaveVP_and_do_work( TopLevelFnPtr fn, void *initData );
178
179 inline SlaveVP *
180 Vthread__create_slaveVP_helper( TopLevelFnPtr fnPtr, void *initData,
181 VthdSemEnv *semEnv, int32 coreToScheduleOnto );
167 182
168 //======================= 183 //=======================
169 184
170 inline SlaveVP * 185 inline SlaveVP *
171 Vthread__create_thread( TopLevelFnPtr fnPtr, void *initData, 186 Vthread__create_thread( TopLevelFnPtr fnPtr, void *initData,