Changeset 656 for trunk/user/transpose
- Timestamp:
- Dec 6, 2019, 12:07:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/transpose/transpose.c
r652 r656 154 154 //////////////////////////////////////////////////////////////// 155 155 156 void execute( pthread_parallel_work_args_t * args );156 void * execute( void * arguments ); 157 157 158 158 void instrument( FILE * f , char * filename ); 159 159 160 //////////////// /161 voidmain( void )160 //////////////// 161 int main( void ) 162 162 { 163 163 unsigned long long start_cycle; … … 586 586 exit( 0 ); 587 587 588 return 0; 589 588 590 } // end main() 589 591 … … 591 593 592 594 593 ////////////////////////////////// /////////////////594 void execute( pthread_parallel_work_args_t * args )595 ////////////////////////////////// 596 void * execute( void * arguments ) 595 597 { 596 598 unsigned long long date; … … 598 600 unsigned int l; // line index for loop 599 601 unsigned int p; // pixel index for loop 602 603 pthread_parallel_work_args_t * args = (pthread_parallel_work_args_t *)arguments; 600 604 601 605 // WARNING … … 813 817 if( PARALLEL_PLACEMENT ) 814 818 { 815 // <work> threads are runing in detached mode 819 // <work> threads are runing in detached mode, and 816 820 // each thread must signal completion by calling barrier 817 821 // passed in arguments before exit … … 827 831 if ( tid != tid_main ) pthread_exit( &THREAD_EXIT_SUCCESS ); 828 832 } 833 834 return NULL; 829 835 830 836 } // end execute()
Note: See TracChangeset
for help on using the changeset viewer.