\hypertarget{classTaskList}{
\section{TaskList Class Reference}
\label{classTaskList}\index{TaskList@{TaskList}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTaskList_a7665fa3ba276fe943dd5f9bc5a4078a2}{
void \hyperlink{classTaskList_a7665fa3ba276fe943dd5f9bc5a4078a2}{run} ()}
\label{classTaskList_a7665fa3ba276fe943dd5f9bc5a4078a2}

\begin{DoxyCompactList}\small\item\em Expire all pending \hyperlink{classXorpTask}{XorpTask} objects associated with \hyperlink{classTaskList}{TaskList}. \item\end{DoxyCompactList}\item 
\hyperlink{classXorpTask}{XorpTask} \hyperlink{classTaskList_a24e396736bc3a6c382bb1887b38aa735}{new\_\-oneoff\_\-task} (const OneoffTaskCallback \&cb, int priority=XorpTask::PRIORITY\_\-DEFAULT, int weight=XorpTask::WEIGHT\_\-DEFAULT)
\begin{DoxyCompactList}\small\item\em Create a \hyperlink{classXorpTask}{XorpTask} that will be scheduled only once. \item\end{DoxyCompactList}\item 
\hyperlink{classXorpTask}{XorpTask} \hyperlink{classTaskList_af295d175f3e77d40d5087ee03da25235}{new\_\-task} (const RepeatedTaskCallback \&cb, int priority=XorpTask::PRIORITY\_\-DEFAULT, int weight=XorpTask::WEIGHT\_\-DEFAULT)
\begin{DoxyCompactList}\small\item\em Create a repeated \hyperlink{classXorpTask}{XorpTask}. \item\end{DoxyCompactList}\item 
int \hyperlink{classTaskList_a465f700594f1571920c3e62f0bcbf970}{get\_\-runnable\_\-priority} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} priority of \hyperlink{protocolthe-p}{the} highest priority runnable task. \item\end{DoxyCompactList}\item 
\hypertarget{classTaskList_ad31742d3022aff28fe91973f5daef9c6}{
void {\bfseries schedule\_\-node} (\hyperlink{classTaskNode}{TaskNode} $\ast$node)}
\label{classTaskList_ad31742d3022aff28fe91973f5daef9c6}

\item 
\hypertarget{classTaskList_a4d8fee6c41fa06723ef9f66a26dbe9b7}{
void {\bfseries unschedule\_\-node} (\hyperlink{classTaskNode}{TaskNode} $\ast$node)}
\label{classTaskList_a4d8fee6c41fa06723ef9f66a26dbe9b7}

\item 
\hypertarget{classTaskList_af427956b69a361350e13bf3363f04447}{
bool {\bfseries empty} () const }
\label{classTaskList_af427956b69a361350e13bf3363f04447}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTaskList_a4c048b47c929d1553551e388aa76e1df}{
\hyperlink{classRoundRobinQueue}{RoundRobinQueue} $\ast$ {\bfseries find\_\-round\_\-robin} (int priority)}
\label{classTaskList_a4c048b47c929d1553551e388aa76e1df}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTaskList_a10fd324193cece0d0aa5dbf668a8ca06}{
map$<$ int, \hyperlink{classRoundRobinQueue}{RoundRobinQueue} $\ast$ $>$ {\bfseries \_\-rr\_\-list}}
\label{classTaskList_a10fd324193cece0d0aa5dbf668a8ca06}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classTaskList_a465f700594f1571920c3e62f0bcbf970}{
\index{TaskList@{TaskList}!get\_\-runnable\_\-priority@{get\_\-runnable\_\-priority}}
\index{get\_\-runnable\_\-priority@{get\_\-runnable\_\-priority}!TaskList@{TaskList}}
\subsubsection[{get\_\-runnable\_\-priority}]{\setlength{\rightskip}{0pt plus 5cm}int TaskList::get\_\-runnable\_\-priority (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classTaskList_a465f700594f1571920c3e62f0bcbf970}


Get \hyperlink{protocolthe-p}{the} priority of \hyperlink{protocolthe-p}{the} highest priority runnable task. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} priority (lowest value is best priority). 
\end{DoxyReturn}
\hypertarget{classTaskList_a24e396736bc3a6c382bb1887b38aa735}{
\index{TaskList@{TaskList}!new\_\-oneoff\_\-task@{new\_\-oneoff\_\-task}}
\index{new\_\-oneoff\_\-task@{new\_\-oneoff\_\-task}!TaskList@{TaskList}}
\subsubsection[{new\_\-oneoff\_\-task}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XorpTask} TaskList::new\_\-oneoff\_\-task (
\begin{DoxyParamCaption}
\item[{const OneoffTaskCallback \&}]{cb, }
\item[{int}]{priority = {\ttfamily XorpTask::PRIORITY\_\-DEFAULT}, }
\item[{int}]{weight = {\ttfamily XorpTask::WEIGHT\_\-DEFAULT}}
\end{DoxyParamCaption}
)}}
\label{classTaskList_a24e396736bc3a6c382bb1887b38aa735}


Create a \hyperlink{classXorpTask}{XorpTask} that will be scheduled only once. 


\begin{DoxyParams}{Parameters}
{\em cb} & callback object that is invoked when task is run.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classXorpTask}{XorpTask} created. 
\end{DoxyReturn}
\hypertarget{classTaskList_af295d175f3e77d40d5087ee03da25235}{
\index{TaskList@{TaskList}!new\_\-task@{new\_\-task}}
\index{new\_\-task@{new\_\-task}!TaskList@{TaskList}}
\subsubsection[{new\_\-task}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XorpTask} TaskList::new\_\-task (
\begin{DoxyParamCaption}
\item[{const RepeatedTaskCallback \&}]{cb, }
\item[{int}]{priority = {\ttfamily XorpTask::PRIORITY\_\-DEFAULT}, }
\item[{int}]{weight = {\ttfamily XorpTask::WEIGHT\_\-DEFAULT}}
\end{DoxyParamCaption}
)}}
\label{classTaskList_af295d175f3e77d40d5087ee03da25235}


Create a repeated \hyperlink{classXorpTask}{XorpTask}. 


\begin{DoxyParams}{Parameters}
{\em cb} & callback object that is invoked when task is run. If \hyperlink{protocolthe-p}{the} callback returns true, \hyperlink{protocolthe-p}{the} task will continue to run, otherwise it will be unscheduled.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classXorpTask}{XorpTask} created. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/task.hh\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/task.cc\end{DoxyCompactItemize}
