Changeset 656 for trunk/user/sort
- Timestamp:
- Dec 6, 2019, 12:07:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/sort/sort.c
r652 r656 153 153 } // end merge() 154 154 155 /////////////////////////////// ////////////////156 void sort( pthread_parallel_work_args_t * ptr)155 /////////////////////////////// 156 void * sort( void * arguments ) 157 157 { 158 158 unsigned int i; … … 161 161 162 162 // get arguments 163 pthread_parallel_work_args_t * ptr = (pthread_parallel_work_args_t *)arguments; 164 163 165 unsigned int tid = ptr->tid; 164 166 pthread_barrier_t * parent_barrier = ptr->barrier; … … 237 239 pthread_exit( NULL ); 238 240 241 return NULL; 242 239 243 } // end sort() 240 244 241 245 242 //////////////// /243 voidmain( void )246 //////////////// 247 int main( void ) 244 248 { 245 249 int error; … … 452 456 exit( 0 ); 453 457 458 return 0; 459 454 460 } // end main() 455 461
Note: See TracChangeset
for help on using the changeset viewer.