source: tests/concurrency/waituntil/break.cfa @ a2f1ea8d

Last change on this file since a2f1ea8d was a2f1ea8d, checked in by caparsons <caparson@…>, 12 months ago

added test for fixed waituntil break case

  • Property mode set to 100644
File size: 463 bytes
Line 
1#include <select.hfa>
2#include <channel.hfa>
3
4channel(long long int) A{1}, B{1};
5
6int main( int argc, char * argv[] ) {
7    printf("START\n");
8    long long int a, b, c, i = 0, myTotal = 0;
9    insert( A, 23 );
10    insert( B, 4 );
11    for( ;;i++ ) {
12        waituntil( a << A ) {  myTotal += a; }
13        and waituntil( b << B ) { printf("BREAK\n"); break; }
14        printf("IF THIS PRINTS THE BREAK ABOVE DOESN'T WORK PROPERLY\n");
15    }
16    printf("DONE\n");
17}
Note: See TracBrowser for help on using the repository browser.