view example/many_task/task_init.cc @ 203:1eba8570808c draft

fix CreateSpan::run
author gongo@localhost.localdomain
date Mon, 26 Jan 2009 18:30:35 +0900
parents 028ffc9c0375
children 305ac1897c50
line wrap: on
line source

#include "Func.h"
#include "Scheduler.h"

//SchedExternTask(Hello);
SchedExternTask(RunStart);
SchedExternTask(RunFinish);
SchedExternTask(QuickSort);
/**
 * この関数は ../spe/spe-main と違って
 * 自分で呼び出せばいい関数なので
 * 好きな関数名でおk (SchedRegisterTask は必須)
 */
void
task_init(void)
{
//    SchedRegisterTask(HELLO_TASK, Hello);
    SchedRegisterTask(TASK_MAIN, RunStart);
    SchedRegisterTask(TASK_FINISH, RunFinish);
    SchedRegisterTask(QUICK_SORT, QuickSort);
}