Changeset e0396d9 for doc/theses


Ignore:
Timestamp:
Jul 17, 2023, 4:05:00 PM (17 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
d5926ae
Parents:
5adb277
Message:

added discussion of channel shorthand operators

File:
1 edited

Legend:

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

    r5adb277 re0396d9  
    107107Programmers use this mechanism to broadcast a sentinel value to multiple consumers.
    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.
     109
     110\item Go-style @?>>?@ and @?<<?@ shorthand operators for inserting and removing respectively.
     111\begin{cfa}
     112channel(int) chan;
     113int i = 2;
     114i >> chan;                      $\C{// insert i into chan}$
     115i << chan;              $\C{// remove element from chan into i}$
     116\end{cfa}
    109117\end{itemize}
    110118
Note: See TracChangeset for help on using the changeset viewer.