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/pingpong.cfa

    r2ed94a9 rb110bcc  
    66#include <actor.hfa>
    77
    8 struct ping {
    9     inline actor;
    10 };
    11 static inline void ?{}( ping & this ) { ((actor &)this){}; }
    12 
    13 struct pong {
    14     inline actor;
    15 };
    16 static inline void ?{}( pong & this ) { ((actor &)this){}; }
     8struct ping { inline actor; };
     9struct pong { inline actor; };
    1710
    1811struct p_msg {
     
    3225    Allocation retval = Nodelete;
    3326    if ( msg.count == times ) retval = Finished;
    34     *po | msg;
     27    *po << msg;
    3528    return retval;
    3629}
     
    4235    Allocation retval = Nodelete;
    4336    if ( msg.count == times ) retval = Finished;
    44     *pi | msg;
     37    *pi << msg;
    4538    return retval;
    4639}
     
    6053    pi = &pi_actor;
    6154    p_msg m;
    62     pi_actor | m;
     55    pi_actor << m;
    6356    stop_actor_system();
    6457
Note: See TracChangeset for help on using the changeset viewer.