Changeset d96f7c4 for doc/uC++toCFA


Ignore:
Timestamp:
Jan 17, 2025, 3:46:34 PM (11 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
df56e25
Parents:
3b340d68
Message:

expunge fallthru keyword and replace its usages with fallthrough

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/uC++toCFA/uC++toCFA.tex

    r3b340d68 rd96f7c4  
    1111%% Created On       : Wed Apr  6 14:53:29 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Thu Jan 16 11:49:47 2025
    14 %% Update Count     : 6281
     13%% Last Modified On : Fri Jan 17 07:39:09 2025
     14%% Update Count     : 6284
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    588588
    589589
    590 \section{Thread}
    591 
    592 \begin{cquote}
    593 \begin{tabular}{@{}l|ll@{}}
    594 \begin{uC++}
    595 
    596 @_Task@ T {
    597         // private task fields
    598         void main() {
    599                 ... @_Resume E( ... ) _At partner@;
    600                 ... @uThisTask();@ ...
    601         }
    602   public:
    603 };
    604 \end{uC++}
    605 &
    606 \begin{cfa}
    607 #include <$thread$.hfa>
    608 @thread@ T {
    609         // private task fields
    610 
    611 };
    612 void main( @T & t@ ) {
    613         ... @resumeAt( partner, ExceptionInst( E, ... )@ );
    614         ... @active_thread();@ ...
    615 }
    616 \end{cfa}
    617 \\
    618 \multicolumn{2}{@{}l@{}}{\lstinline{T t; // start thread in main routine}}
    619 \end{tabular}
    620 \end{cquote}
    621 
    622 
    623590\section{\lstinline{COBEGIN}/\lstinline{COFOR}}
    624591
     
    634601                BEGIN osacquire( cout ) << "C" << endl; END
    635602                BEGIN osacquire( cout ) << "D" << endl; END
    636                 BEGIN osacquire( cout ) << "E" << endl; END
    637603        @COEND@
    638604        @COFOR@( i, 1, 10,
     
    651617                corun { mutex( sout ) sout | "C"; }
    652618                corun { mutex( sout ) sout | "D"; }
    653                 corun { mutex( sout ) sout | "E"; }
    654619        }
    655620        @cofor@( i; 10 ) {
     
    735700}
    736701\end{cfa}
     702\end{tabular}
     703\end{cquote}
     704
     705
     706\section{Thread}
     707
     708\begin{cquote}
     709\begin{tabular}{@{}l|ll@{}}
     710\begin{uC++}
     711
     712@_Task@ T {
     713        // private task fields
     714        void main() {
     715                ... @_Resume E( ... ) _At partner@;
     716                ... @uThisTask();@ ...
     717        }
     718  public:
     719};
     720\end{uC++}
     721&
     722\begin{cfa}
     723#include <$thread$.hfa>
     724@thread@ T {
     725        // private task fields
     726
     727};
     728void main( @T & t@ ) {
     729        ... @resumeAt( partner, ExceptionInst( E, ... )@ );
     730        ... @active_thread();@ ...
     731}
     732\end{cfa}
     733\\
     734\multicolumn{2}{@{}l@{}}{\lstinline{T t; // start thread in main routine}}
    737735\end{tabular}
    738736\end{cquote}
Note: See TracChangeset for help on using the changeset viewer.