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{
$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)$\;
}{
}
}
\caption{Engine pseudocode for the \gls{C}- and
- \gls{iTasks}-backends}\label{lst:engine}
+ \gls{iTasks}-backend}\label{lst:engine}
\end{algorithm}
\section{Expressions}
\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@ }