Changeset 2125443a for tests


Ignore:
Timestamp:
Feb 3, 2023, 1:28:43 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
2f61765
Parents:
8a97248 (diff), db9d7a9 (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/concurrent/actors
Files:
6 added
2 edited

Legend:

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

    r8a97248 r2125443a  
    55#include <stdio.h>
    66
    7 unsigned int xr = 100, xc = 100, yc = 100, Processors = 1; // default values
     7unsigned int xr = 500, xc = 500, yc = 500, Processors = 1; // default values
    88
    99struct derived_actor {
  • tests/concurrent/actors/types.cfa

    r8a97248 r2125443a  
    55#include <stdio.h>
    66#include <mutex_stmt.hfa>
     7
     8struct dummy_actor { actor a; }; // this won't work since the actor isn't inlined
    79
    810struct derived_actor {
     
    2628}
    2729
     30Allocation receive( derived_actor & receiver, d_msg & msg ) {
     31    return receive( receiver, msg.num );
     32}
     33
    2834struct derived_actor2 {
     35    struct nested { int i; }; // testing nested before inline
    2936    inline actor;
    3037};
    3138static inline void ?{}( derived_actor2 & this ) { ((actor &)this){}; }
     39
     40Allocation receive( derived_actor2 & receiver, d_msg & msg ) {
     41    mutex(sout) sout | msg.num;
     42    return Finished;
     43}
    3244
    3345struct derived_actor3 {
     
    4153};
    4254static inline void ?{}( d_msg2 & this ) { ((message &)this){}; }
    43 
    44 Allocation receive( derived_actor2 & receiver, d_msg & msg ) {
    45     mutex(sout) sout | msg.num;
    46     return Finished;
    47 }
    48 
    49 Allocation receive( derived_actor & receiver, d_msg & msg ) {
    50     return receive( receiver, msg.num );
    51 }
    5255
    5356Allocation receive( derived_actor3 & receiver, d_msg & msg ) {
Note: See TracChangeset for help on using the changeset viewer.