Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > Vthread_impls > Vthread_MC_shared_impl
diff VPThread.h @ 17:f593241c2db9
code cleanup to remove warnings
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 07 Sep 2011 18:06:17 +0200 |
| parents | ce4ad44fcc23 |
| children | bb2500771be8 |
line diff
1.1 --- a/VPThread.h Mon Aug 29 14:25:18 2011 +0200 1.2 +++ b/VPThread.h Wed Sep 07 18:06:17 2011 +0200 1.3 @@ -166,7 +166,7 @@ 1.4 VPThread__create_thread( VirtProcrFnPtr fnPtr, void *initData, 1.5 VirtProcr *creatingPr ); 1.6 1.7 -inline VirtProcr * 1.8 +inline void 1.9 VPThread__create_thread_with_affinity( VirtProcrFnPtr fnPtr, void *initData, 1.10 VirtProcr *creatingPr, int32 coreToScheduleOnto ); 1.11 1.12 @@ -198,7 +198,7 @@ 1.13 inline void 1.14 VPThread__cond_wait( int32 condIdx, VirtProcr *waitingPr); 1.15 1.16 -inline void * 1.17 +inline void 1.18 VPThread__cond_signal( int32 condIdx, VirtProcr *signallingPr ); 1.19 1.20 1.21 @@ -244,6 +244,9 @@ 1.22 VPThread__malloc( size_t sizeToMalloc, VirtProcr *animPr ); 1.23 1.24 void 1.25 +VPThread__free( void *ptrToFree, VirtProcr *animPr ); 1.26 + 1.27 +void 1.28 VPThread__init(); 1.29 1.30 void 1.31 @@ -252,5 +255,22 @@ 1.32 void inline 1.33 resume_procr( VirtProcr *procr, VPThdSemEnv *semEnv ); 1.34 1.35 +//======================= 1.36 + 1.37 +inline int32 1.38 +VPThread__giveMinWorkUnitCycles( float32 percentOverhead ); 1.39 + 1.40 +inline int32 1.41 +VPThread__giveIdealNumWorkUnits(); 1.42 + 1.43 +inline int32 1.44 +VPThread__give_number_of_cores_to_schedule_onto(); 1.45 + 1.46 +inline void 1.47 +VPThread__start_primitive(); 1.48 + 1.49 +inline int32 1.50 +VPThread__end_primitive_and_give_cycles(); 1.51 + 1.52 #endif /* _VPThread_H */ 1.53
