Changeset daf4c89
- Timestamp:
- Jul 18, 2023, 9:33:56 AM (16 months ago)
- Branches:
- master
- Children:
- 8b84973
- Parents:
- ca22a7c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/text/channels.tex
rca22a7c rdaf4c89 108 108 Additionally, the @flush@ routine is more performant then looping around the @insert@ operation since it can deliver the elements without having to reacquire mutual exclusion for each element sent. 109 109 110 \item Go-style @? >>?@ and @?<<?@ shorthand operators for inserting and removing respectively.110 \item Go-style @?<<?@ shorthand operator for inserting and removing. 111 111 \begin{cfa} 112 112 channel(int) chan; 113 113 int i = 2; 114 i >> chan; $\C{// insert i into chan}$114 chan << i; $\C{// insert i into chan}$ 115 115 i << chan; $\C{// remove element from chan into i}$ 116 116 \end{cfa}
Note: See TracChangeset
for help on using the changeset viewer.