Ignore:
Timestamp:
May 6, 2023, 1:28:27 PM (14 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
a32a887
Parents:
dd7a8ce
Message:

added and removed some tests in pursuit of a more minimal repro of the deadlock failure case

Location:
tests/concurrent/waituntil
Files:
10 added
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/waituntil/channels-SPSC.cfa

    rdd7a8ce r85e49a6  
    4343        }
    4444        printf("waiting for empty channels\n");
    45         while( get_count( A ) > 0 || get_count( B ) > 0 || get_count( C ) > 0 ) { }
     45        size_t A_count = get_count( A );
     46        size_t B_count = get_count( B );
     47        size_t C_count = get_count( C );
     48        while( A_count > 0 || B_count > 0 || C_count > 0 ) {
     49            A_count = get_count( A );
     50            B_count = get_count( B );
     51            C_count = get_count( C );
     52        }
    4653        printf("sending sentinels\n");
    4754        for ( i; numServers ) insert( C, -1 );
Note: See TracChangeset for help on using the changeset viewer.