class TaskList


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 ~TaskList ()

~TaskList

void  run ()

run

Expire all pending XorpTask objects associated with TaskList.

XorpTask  new_oneoff_task (const OneoffTaskCallback& cb, int priority = XorpTask::PRIORITY_DEFAULT, int weight = XorpTask::WEIGHT_DEFAULT)

new_oneoff_task

Create a XorpTask that will be scheduled only once.

Parameters:

cbcallback object that is invoked when task is run.

Returns: the XorpTask created.

XorpTask  new_task (const RepeatedTaskCallback& cb, int priority = XorpTask::PRIORITY_DEFAULT, int weight = XorpTask::WEIGHT_DEFAULT)

new_task

Create a repeated XorpTask.

Parameters:

cbcallback object that is invoked when task is run. If the callback returns true, the task will continue to run, otherwise it will be unscheduled.

Returns: the XorpTask created.

int  get_runnable_priority ()

get_runnable_priority

[const]

Get the priority of the highest priority runnable task.

Returns: the priority (lowest value is best priority).

void  schedule_node (TaskNode* node)

schedule_node

void  unschedule_node (TaskNode* node)

unschedule_node

bool  empty ()

empty

[const]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:36 2009, using kdoc 2.0a54+XORP.