Changeset 434 for trunk/user/sort
- Timestamp:
- Feb 14, 2018, 3:41:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/sort/sort.c
r427 r434 240 240 { 241 241 printf("\n[SORT ERROR] number of cores must be power of 2\n"); 242 pthread_exit( NULL);242 exit( 0 ); 243 243 } 244 244 … … 247 247 { 248 248 printf("\n[SORT ERROR] array size must be multiple of number of threads\n"); 249 pthread_exit( NULL);249 exit( 0 ); 250 250 } 251 251 … … 261 261 { 262 262 printf("\n[SORT ERROR] cannot initialise barrier\n" ); 263 pthread_exit( NULL);263 exit( 0 ); 264 264 } 265 265 … … 309 309 { 310 310 printf("\n[SORT ERROR] creating thread %x\n", thread_uid ); 311 pthread_exit( NULL);311 exit( 0 ); 312 312 } 313 313 … … 350 350 { 351 351 printf("\n[SORT] success at cycle %d\n", (unsigned int)cycle ); 352 pthread_exit( NULL);352 exit( 0 ); 353 353 } 354 354 else 355 355 { 356 356 printf("\n[SORT] failure at cycle %d\n", (unsigned int)cycle ); 357 pthread_exit( NULL);357 exit( 0 ); 358 358 } 359 359
Note: See TracChangeset
for help on using the changeset viewer.