Changeset a2c2363 for tests/concurrency/channels/contend.cfa
- Timestamp:
- Sep 18, 2023, 10:21:29 AM (2 years ago)
- Branches:
- master
- Children:
- e4c3819
- Parents:
- e3784a50 (diff), 7edf912 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/channels/contend.cfa
re3784a50 ra2c2363 127 127 case 3: 128 128 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? 129 ChannelSize = atoi( argv[2] ); 129 ChannelSize = ato( argv[2] ); 130 if ( ChannelSize < 1 ) fallthru default; 130 131 } // if 131 132 case 2: 132 133 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? 133 Processors = ato i( argv[1] );134 if ( Processors < 1 ) goto Usage;134 Processors = ato( argv[1] ); 135 if ( Processors < 1 ) fallthru default; 135 136 } // if 136 137 case 1: // use defaults 137 138 break; 138 139 default: 139 Usage: 140 sout | "Usage: " | argv[0] 140 exit | "Usage: " | argv[0] 141 141 | " [ processors (> 0) | 'd' (default " | Processors 142 142 | ") ] [ channel size (>= 0) | 'd' (default " | ChannelSize 143 143 | ") ]" ; 144 exit( EXIT_FAILURE );145 144 } // switch 145 146 146 test(Processors, Channels, Producers, Consumers, ChannelSize); 147 147 }
Note:
See TracChangeset
for help on using the changeset viewer.