Ignore:
Timestamp:
Jan 11, 2025, 5:48:46 PM (13 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master, stuck-waitfor-destruct
Children:
f886608
Parents:
7d65715f (diff), 32a119e9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests/concurrency/waitfor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/waitfor/.expect/parse.txt

    r7d65715f rd60a4c2  
    1 concurrency/waitfor/parse.cfa:255:25: warning: Compiled
     1done
  • tests/concurrency/waitfor/barge.cfa

    r7d65715f rd60a4c2  
    3030}
    3131
    32 void ^?{} ( global_t & mutex this ) {}
     32void ^?{} ( global_t & mutex ) {}
    3333
    3434global_t global;
     
    4040
    4141thread barger_t {};
    42 void main( barger_t & this ) {
     42void main( barger_t & ) {
    4343        yield();
    4444        while( barge( global ) ) { yield(random( 10 )); }
     
    5656
    5757thread caller_t {};
    58 void main( caller_t & this ) {
     58void main( caller_t & ) {
    5959        while( do_call(global) ) { yield(random( 10 )); }
    6060}
     
    7878
    7979thread waiter_t{};
    80 void main( waiter_t & this ) {
     80void main( waiter_t & ) {
    8181        do_wait(global);
    8282}
  • tests/concurrency/waitfor/parse.cfa

    r7d65715f rd60a4c2  
    252252
    253253//Dummy main
    254 int main( int argc, char const * argv[] ) {
    255     #pragma GCC warning "Compiled"                      // force non-empty .expect file, NO TABS!!!
     254int main() {
     255        printf("done\n");
    256256}
    257257
  • tests/concurrency/waitfor/statment.cfa

    r7d65715f rd60a4c2  
    8989}
    9090
    91 void main( caller & this ) {
     91void main( caller & ) {
    9292        int index = get_index( m );
    9393        while( !start ) yield();
     
    122122thread waiter{};
    123123
    124 void main( waiter & this ) {
     124void main( waiter & ) {
    125125        do_wait( m );
    126126}
  • tests/concurrency/waitfor/when.cfa

    r7d65715f rd60a4c2  
    3939
    4040thread caller_t{};
    41 void main( caller_t & this ) {
     41void main( caller_t & ) {
    4242        while( true ) {
    4343                rand_yield();
     
    7676
    7777thread arbiter_t{};
    78 void main( arbiter_t & this ) {
     78void main( arbiter_t & ) {
    7979        arbiter( global );
    8080}
Note: See TracChangeset for help on using the changeset viewer.