Ignore:
Timestamp:
Apr 21, 2023, 5:36:12 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, master
Children:
28f8f15, 6e4c44d
Parents:
2ed94a9 (diff), 699a97d (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/actors/dynamic.cfa

    r2ed94a9 rb110bcc  
    77int Times = 1000000;                                                            // default values
    88
    9 struct derived_actor {
    10     inline actor;
    11 };
    12 void ?{}( derived_actor & this ) { ((actor &)this){}; }
    13 
     9struct derived_actor { inline actor; };
    1410struct derived_msg {
    1511    inline message;
     
    2319void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; }
    2420
    25 
    2621Allocation receive( derived_actor & receiver, derived_msg & msg ) {
    2722    if ( msg.cnt >= Times ) {
     
    3328    derived_actor * d_actor = alloc();
    3429    (*d_actor){};
    35     *d_actor | *d_msg;
     30    *d_actor << *d_msg;
    3631    return Delete;
    3732}
     
    6358    derived_actor * d_actor = alloc();
    6459    (*d_actor){};
    65     *d_actor | *d_msg;
     60    *d_actor << *d_msg;
    6661
    6762    printf("stopping\n");
Note: See TracChangeset for help on using the changeset viewer.