Ignore:
Timestamp:
Jul 18, 2023, 9:33:56 AM (11 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
8b84973
Parents:
ca22a7c
Message:

updated channel chapter to reflect new syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/text/channels.tex

    rca22a7c rdaf4c89  
    108108Additionally, 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.
    109109
    110 \item Go-style @?>>?@ and @?<<?@ shorthand operators for inserting and removing respectively.
     110\item Go-style @?<<?@ shorthand operator for inserting and removing.
    111111\begin{cfa}
    112112channel(int) chan;
    113113int i = 2;
    114 i >> chan;                      $\C{// insert i into chan}$
     114chan << i;                      $\C{// insert i into chan}$
    115115i << chan;              $\C{// remove element from chan into i}$
    116116\end{cfa}
Note: See TracChangeset for help on using the changeset viewer.