Ignore:
Timestamp:
Feb 18, 2025, 12:54:23 PM (6 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
8705a11
Parents:
3e5fea2
Message:

Clean-up the warnings of the concurrency tests. A lot of little test level fixes, the most interesting repeated one is some formally redundent fallthough statements. pthread_attr_test had to be rewritten because of library restrictions. Changed some types so they would always be pointer sized. There was a library change, there was a function that could not be implemented; I trust that it is included for a reason so I just put it in a comment. There is a change to the compiler, wait-until now uses goto. The labelled breaks were code generated as unlabelled breaks and although it worked out slipped through some checks. Finally, there is one warning that I cannot solve at this time so tests that produce it have been put in their own lax group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/concurrency/waituntil/all_types.cfa

    r3e5fea2 rd923fca  
    3333
    3434thread Server1 {};
    35 void main( Server1 & this ) {
    36     long long int a, b, c, i = 0, myTotal = 0;
     35void main( Server1 & ) {
     36    long long int a, c, i = 0, myTotal = 0;
    3737    for( ;;i++ ) {
    3838        when( i % 2 == 0 ) waituntil( a << A ) { myTotal += a; }
     
    4646
    4747thread Drainer {}; // ensures that the changing when states of Server1 don't result in a deadlock
    48 void main( Drainer & this ) {
    49     long long int a, b, c, myTotal = 0;
     48void main( Drainer & ) {
     49    long long int a, c, myTotal = 0;
    5050    for( ;; ) {
    5151        waituntil( F ) { myTotal += get(F); reset( F ); }
     
    5959
    6060thread Churner {}; // performs non-waituntil try insert/remove operations to add churn/interference
    61 void main( Churner & this ) {
     61void main( Churner & ) {
    6262    long long int out, myTotal = 0;
    6363    bool success;
Note: See TracChangeset for help on using the changeset viewer.