Changeset 10b5970 for tests/concurrency/waitfor
- Timestamp:
- Jan 7, 2025, 3:22:19 PM (9 months ago)
- Branches:
- master
- Children:
- 190a833
- Parents:
- 70670e7
- Location:
- tests/concurrency/waitfor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/waitfor/barge.cfa
r70670e7 r10b5970 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/statment.cfa
r70670e7 r10b5970 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
r70670e7 r10b5970 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.