Changeset d60a4c2 for tests/concurrency/waitfor
- Timestamp:
- Jan 11, 2025, 5:48:46 PM (13 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- f886608
- Parents:
- 7d65715f (diff), 32a119e9 (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. - Location:
- tests/concurrency/waitfor
- Files:
-
- 5 edited
-
.expect/parse.txt (modified) (1 diff)
-
barge.cfa (modified) (4 diffs)
-
parse.cfa (modified) (1 diff)
-
statment.cfa (modified) (2 diffs)
-
when.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/waitfor/.expect/parse.txt
r7d65715f rd60a4c2 1 concurrency/waitfor/parse.cfa:255:25: warning: Compiled 1 done -
tests/concurrency/waitfor/barge.cfa
r7d65715f rd60a4c2 30 30 } 31 31 32 void ^?{} ( global_t & mutex this) {}32 void ^?{} ( global_t & mutex ) {} 33 33 34 34 global_t global; … … 40 40 41 41 thread barger_t {}; 42 void main( barger_t & this) {42 void main( barger_t & ) { 43 43 yield(); 44 44 while( barge( global ) ) { yield(random( 10 )); } … … 56 56 57 57 thread caller_t {}; 58 void main( caller_t & this) {58 void main( caller_t & ) { 59 59 while( do_call(global) ) { yield(random( 10 )); } 60 60 } … … 78 78 79 79 thread waiter_t{}; 80 void main( waiter_t & this) {80 void main( waiter_t & ) { 81 81 do_wait(global); 82 82 } -
tests/concurrency/waitfor/parse.cfa
r7d65715f rd60a4c2 252 252 253 253 //Dummy main 254 int main( int argc, char const * argv[]) {255 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 254 int main() { 255 printf("done\n"); 256 256 } 257 257 -
tests/concurrency/waitfor/statment.cfa
r7d65715f rd60a4c2 89 89 } 90 90 91 void main( caller & this) {91 void main( caller & ) { 92 92 int index = get_index( m ); 93 93 while( !start ) yield(); … … 122 122 thread waiter{}; 123 123 124 void main( waiter & this) {124 void main( waiter & ) { 125 125 do_wait( m ); 126 126 } -
tests/concurrency/waitfor/when.cfa
r7d65715f rd60a4c2 39 39 40 40 thread caller_t{}; 41 void main( caller_t & this) {41 void main( caller_t & ) { 42 42 while( true ) { 43 43 rand_yield(); … … 76 76 77 77 thread arbiter_t{}; 78 void main( arbiter_t & this) {78 void main( arbiter_t & ) { 79 79 arbiter( global ); 80 80 }
Note:
See TracChangeset
for help on using the changeset viewer.