- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/channels/pub_sub.cfa
r50be8af rc26bea2a 87 87 case 3: 88 88 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? 89 Tasks = ato ( argv[2] );90 if ( Tasks < 1 ) fallthru default;89 Tasks = atoi( argv[2] ); 90 if ( Tasks < 1 ) goto Usage; 91 91 } // if 92 92 case 2: 93 93 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? 94 Processors = ato ( argv[1] );95 if ( Processors < 1 ) fallthru default;94 Processors = atoi( argv[1] ); 95 if ( Processors < 1 ) goto Usage; 96 96 } // if 97 97 case 1: // use defaults 98 98 break; 99 99 default: 100 exit | "Usage: " | argv[0] 100 Usage: 101 sout | "Usage: " | argv[0] 101 102 | " [ processors (> 0) | 'd' (default " | Processors 102 103 | ") ] [ Tasks (> 0) | 'd' (default " | Tasks 103 104 | ") ]" ; 105 exit( EXIT_FAILURE ); 104 106 } // switch 105 107 BarrierSize = Tasks;
Note: See TracChangeset
for help on using the changeset viewer.