Changeset d923fca for tests/concurrency/channels
- Timestamp:
- Feb 18, 2025, 12:54:23 PM (8 months ago)
- Branches:
- master
- Children:
- 8705a11
- Parents:
- 3e5fea2
- Location:
- tests/concurrency/channels
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/channels/churn.cfa
r3e5fea2 rd923fca 30 30 } 31 31 32 void main(Consumer & this) {32 void main(Consumer &) { 33 33 size_t i = 0; 34 34 size_t runs = 0; … … 53 53 } 54 54 } catchResume ( channel_closed * e ) {} // continue to remove until would block 55 catch ( channel_closed * e ) {} 55 catch ( channel_closed * e ) {} 56 56 } 57 57 … … 65 65 thread Producer {}; 66 66 67 void main(Producer & this) {67 void main(Producer &) { 68 68 size_t i = 0; 69 69 size_t runs = 0; … … 77 77 runs++; 78 78 } 79 } catch ( channel_closed * e ) {} 79 } catch ( channel_closed * e ) {} 80 80 lock(o); 81 81 total_operations += runs; … … 93 93 if ( ChannelSize < 1 ) fallthrough default; 94 94 } // if 95 fallthrough; 95 96 case 3: 96 97 if ( strcmp( argv[2], "d" ) != 0 ) { // default ? … … 98 99 if ( Channels < 1 ) fallthrough default; 99 100 } // if 101 fallthrough; 100 102 case 2: 101 103 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 103 105 if ( Processors < 1 ) fallthrough default; 104 106 } // if 107 fallthrough; 105 108 case 1: // use defaults 106 109 break; … … 121 124 122 125 sout | "start"; 123 { 126 { 124 127 Consumer c[Consumers]; 125 128 { -
tests/concurrency/channels/contend.cfa
r3e5fea2 rd923fca 130 130 if ( ChannelSize < 1 ) fallthrough default; 131 131 } // if 132 fallthrough; 132 133 case 2: 133 134 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 135 136 if ( Processors < 1 ) fallthrough default; 136 137 } // if 138 fallthrough; 137 139 case 1: // use defaults 138 140 break; -
tests/concurrency/channels/daisy_chain.cfa
r3e5fea2 rd923fca 17 17 18 18 thread Task {}; 19 void main(Task & this) {19 void main(Task &) { 20 20 size_t runs = 0; 21 21 int token = 0; … … 40 40 if ( Tasks < 1 ) fallthrough default; 41 41 } // if 42 fallthrough; 42 43 case 2: 43 44 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 45 46 if ( Processors < 1 ) fallthrough default; 46 47 } // if 48 fallthrough; 47 49 case 1: // use defaults 48 50 break; -
tests/concurrency/channels/hot_potato.cfa
r3e5fea2 rd923fca 45 45 if ( Tasks < 1 ) fallthrough default; 46 46 } // if 47 fallthrough; 47 48 case 2: 48 49 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 50 51 if ( Processors < 1 ) fallthrough default; 51 52 } // if 53 fallthrough; 52 54 case 1: // use defaults 53 55 break; -
tests/concurrency/channels/pub_sub.cfa
r3e5fea2 rd923fca 90 90 if ( Tasks < 1 ) fallthrough default; 91 91 } // if 92 fallthrough; 92 93 case 2: 93 94 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? … … 95 96 if ( Processors < 1 ) fallthrough default; 96 97 } // if 98 fallthrough; 97 99 case 1: // use defaults 98 100 break;
Note:
See TracChangeset
for help on using the changeset viewer.