Changeset 9c65169


Ignore:
Timestamp:
Jan 16, 2025, 1:49:27 PM (4 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
3b340d68, 5cc53b2
Parents:
f6f7b52
Message:

reduce yields in test but still get deterministic results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/waitfor/lexical_priority.cfa

    rf6f7b52 r9c65169  
    3232void main( F & ) {
    3333        for ( Half ) f( t );
    34         yield( 5 );                                                                             // let g get ahead
    3534        for ( Half ) f( t );
    3635}
     36
    3737thread G{};
    3838void main( G & ) {
    39         yield( 5 );                                                                             // let f get ahead
    4039        for ( Half ) g( t );
    4140        for ( Half ) g( t );
     
    4443int main() {
    4544        F f;
     45        yield();                                                                                        // let f get ahead
    4646        G g;
    4747}
Note: See TracChangeset for help on using the changeset viewer.