From 691ce25b525d7d4f677c1e37b73c64c9a39a0247 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 1 Jun 2017 18:22:13 +0200 Subject: [PATCH] update pseudocode --- .gitignore | 1 + methods.mtask.tex | 6 +++--- thesis.loa | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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@ } -- 2.20.1