From: Mart Lubbers Date: Thu, 1 Jun 2017 16:22:13 +0000 (+0200) Subject: update pseudocode X-Git-Tag: hand-in~107 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=691ce25b525d7d4f677c1e37b73c64c9a39a0247;p=msc-thesis1617.git update pseudocode --- diff --git a/.gitignore b/.gitignore index 27aaa80..d6686a7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ img/fig-* *.glo *.gls *.ist +*.loa *.lof *.log *.lol diff --git a/methods.mtask.tex b/methods.mtask.tex index db31782..891cfb7 100644 --- a/methods.mtask.tex +++ b/methods.mtask.tex @@ -54,7 +54,7 @@ executed. When a \gls{mTask} wants to queue another \gls{mTask} it can just append it to the queue. \begin{algorithm}[H] - \KwData{\textbf{queue} queue$[]$, \textbf{time} $t, t_p$} + \KwData{\textbf{queue} queue, \textbf{time} $t, t_p$} $t\leftarrow\text{now}()$\; \Begin{ @@ -63,7 +63,7 @@ append it to the queue. $t\leftarrow\text{now}()$\; \If{notEmpty$($queue$)$}{ $task\leftarrow \text{queue.pop}()$\; - $task$.wait $-= t-t_p$\; + $task$.wait $\leftarrow task$.wait $-(t-t_p)$\; \eIf{$task.wait>t_0$}{ queue.append$(task)$\; }{ @@ -73,7 +73,7 @@ append it to the queue. } } \caption{Engine pseudocode for the \gls{C}- and - \gls{iTasks}-backends}\label{lst:engine} + \gls{iTasks}-backend}\label{lst:engine} \end{algorithm} \section{Expressions} diff --git a/thesis.loa b/thesis.loa index 813f3bb..5279714 100644 --- a/thesis.loa +++ b/thesis.loa @@ -2,7 +2,7 @@ \addvspace {10\p@ } \addvspace {10\p@ } \addvspace {10\p@ } -\contentsline {algocf}{\numberline {1}{\ignorespaces Engine pseudocode for the \gls {C}- and \gls {iTasks}-backends\relax }}{14}{algocf.1} +\contentsline {algocf}{\numberline {1}{\ignorespaces Engine pseudocode for the \gls {C}- and \gls {iTasks}-backend\relax }}{14}{algocf.1} \addvspace {10\p@ } \addvspace {10\p@ } \addvspace {10\p@ }