Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > Vthread_impls > Vthread_MC_shared_impl
changeset 17:f593241c2db9 V0
code cleanup to remove warnings
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 07 Sep 2011 18:06:17 +0200 |
| parents | b17795bc96fb |
| children | bb2500771be8 |
| files | VPThread.h VPThread_PluginFns.c VPThread_lib.c |
| diffstat | 3 files changed, 26 insertions(+), 4 deletions(-) [+] |
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
2.1 --- a/VPThread_PluginFns.c Mon Aug 29 14:25:18 2011 +0200 2.2 +++ b/VPThread_PluginFns.c Wed Sep 07 18:06:17 2011 +0200 2.3 @@ -129,6 +129,8 @@ 2.4 break; 2.5 case trans_end: handleTransEnd( semReq, reqPr, semEnv); 2.6 break; 2.7 + default: 2.8 + break; 2.9 } 2.10 } 2.11
3.1 --- a/VPThread_lib.c Mon Aug 29 14:25:18 2011 +0200 3.2 +++ b/VPThread_lib.c Wed Sep 07 18:06:17 2011 +0200 3.3 @@ -304,7 +304,7 @@ 3.4 return creatingPr->dataRetFromReq; 3.5 } 3.6 3.7 -inline VirtProcr * 3.8 +inline void 3.9 VPThread__create_thread_with_affinity( VirtProcrFnPtr fnPtr, void *initData, 3.10 VirtProcr *creatingPr, int32 coreToScheduleOnto ) 3.11 { VPThdSemReq reqData; 3.12 @@ -436,7 +436,7 @@ 3.13 VMS__send_sem_request( &reqData, waitingPr ); 3.14 } 3.15 3.16 -inline void * 3.17 +inline void 3.18 VPThread__cond_signal( int32 condIdx, VirtProcr *signallingPr ) 3.19 { VPThdSemReq reqData; 3.20
