Ignore:
File:
1 edited

Legend:

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

    r4933f18 r1c75ef8  
    66#include <actor.hfa>
    77
    8 struct ping { inline actor; };
    9 struct pong { inline actor; };
     8struct ping {
     9    inline actor;
     10};
     11static inline void ?{}( ping & this ) { ((actor &)this){}; }
     12
     13struct pong {
     14    inline actor;
     15};
     16static inline void ?{}( pong & this ) { ((actor &)this){}; }
    1017
    1118struct p_msg {
     
    2532    Allocation retval = Nodelete;
    2633    if ( msg.count == times ) retval = Finished;
    27     *po << msg;
     34    *po | msg;
    2835    return retval;
    2936}
     
    3542    Allocation retval = Nodelete;
    3643    if ( msg.count == times ) retval = Finished;
    37     *pi << msg;
     44    *pi | msg;
    3845    return retval;
    3946}
     
    5360    pi = &pi_actor;
    5461    p_msg m;
    55     pi_actor << m;
     62    pi_actor | m;
    5663    stop_actor_system();
    5764
Note: See TracChangeset for help on using the changeset viewer.