Changeset 50be8af for tests/concurrency/channels/pub_sub.cfa
- Timestamp:
- Sep 17, 2023, 11:19:08 AM (8 months ago)
- Branches:
- master
- Children:
- 7edf912
- Parents:
- 697c957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/channels/pub_sub.cfa
r697c957 r50be8af 87 87 case 3: 88 88 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? 89 Tasks = ato i( argv[2] );90 if ( Tasks < 1 ) goto Usage;89 Tasks = ato( argv[2] ); 90 if ( Tasks < 1 ) fallthru default; 91 91 } // if 92 92 case 2: 93 93 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? 94 Processors = ato i( argv[1] );95 if ( Processors < 1 ) goto Usage;94 Processors = ato( argv[1] ); 95 if ( Processors < 1 ) fallthru default; 96 96 } // if 97 97 case 1: // use defaults 98 98 break; 99 99 default: 100 Usage: 101 sout | "Usage: " | argv[0] 100 exit | "Usage: " | argv[0] 102 101 | " [ processors (> 0) | 'd' (default " | Processors 103 102 | ") ] [ Tasks (> 0) | 'd' (default " | Tasks 104 103 | ") ]" ; 105 exit( EXIT_FAILURE );106 104 } // switch 107 105 BarrierSize = Tasks;
Note: See TracChangeset
for help on using the changeset viewer.