view TaskManager/kernel/sys_task/TaskArray.cc @ 697:257ad1a518e3

TaskArray on going...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 13 Dec 2009 18:45:09 +0900
parents b386522827ae
children
line wrap: on
line source

#include "Finish.h"
#include "SysFunc.h"
#include "Scheduler.h"
#include "Task.h"


SchedDefineTask(TaskArray);


static int
run(SchedTask *s,void *rbuf, void *wbuf)
{
#ifdef SIMPLE_TASK

#ifdef TEST_TASK_ARRAY
    Task *task = (Task *)rbuf;
    Task *last = (Task*)(((char*)rbuf)+ s->read_size());

    s->printf("last = %lx\n"   ,(long) last);
    while( task <  last) {
	s->printf("  task = %lx\n"   ,(long) task);
	task->print();
	task = task->next();
    }
#else

#endif
#endif
    return 0;
}