Changeset 4897ffa for doc/theses/colby_parsons_MMAth
- Timestamp:
- Jun 1, 2023, 12:02:36 PM (20 months ago)
- Branches:
- ast-experimental, master
- Children:
- e4a2198
- Parents:
- 0aef549
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/text/channels.tex
r0aef549 r4897ffa 237 237 \begin{lrbox}{\myboxB} 238 238 \begin{cfa}[aboveskip=0pt,belowskip=0pt] 239 <<<<<<< HEAD240 var cons_done, prod_done bool = false, false;241 var prodJoin chan int = make(chan int)242 var consJoin chan int = make(chan int)243 244 func consumer( channel chan uint64 ) {245 for {246 if cons_done { break }247 <-channel248 }249 consJoin <- 0 // synch with main thd250 }251 =======252 239 channel( size_t ) chan{ 128 }; 253 240 thread Consumer {}; 254 241 thread Producer {}; 255 >>>>>>> 8421d3fad6379460563c3a8922889a72c4d868fe256 242 257 243 void main( Producer & this ) {
Note: See TracChangeset
for help on using the changeset viewer.