Changeset 86fb8f2 for doc/papers/concurrency/examples/ProdCons.cfa
- Timestamp:
- Mar 27, 2019, 11:09:23 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a45fc7b
- Parents:
- 2b10f95 (diff), 1e5d0f0c (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/concurrency/examples/ProdCons.cfa
r2b10f95 r86fb8f2 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.