Changeset 1e5d0f0c for doc/papers/concurrency/examples/ProdCons.cfa
- Timestamp:
- Mar 27, 2019, 9:07:47 AM (3 years ago)
- Branches:
- arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
- Children:
- 86fb8f2
- Parents:
- 0087e0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/concurrency/examples/ProdCons.cfa
r0087e0e r1e5d0f0c 23 23 sout | "prod stops"; 24 24 } 25 int payment( Prod & prod, int m oney) {26 prod.money = money;25 int payment( Prod & prod, int m ) with(prod) { 26 money = m; 27 27 resume( prod ); // main 1st time, then 28 return prod.receipt;// prod in delivery28 return receipt; // prod in delivery 29 29 } 30 30 void start( Prod & prod, int N, Cons &c ) {
Note: See TracChangeset
for help on using the changeset viewer.