view example/word_count_test/ppe/task_init.cc @ 800:54f0180cea0f draft

run16 word count ( not yet worked. )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 21 May 2010 07:47:25 +0900
parents beb0f17c19f9
children
line wrap: on
line source

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

/* 必ずこの位置に書いて */
SchedExternTask(Print);
SchedExternTask(Exec);
SchedExternTask(RUN_TASK_BLOCKS);
SchedExternTask(RunFinish);

/**
 * この関数は ../spe/spe-main と違って
 * 自分で呼び出せばいい関数なので
 * 好きな関数名でおk (SchedRegisterTask は必須)
 */
void
task_init(void)
{
    SchedRegisterTask(TASK_PRINT, Print);
    SchedRegisterTask(TASK_EXEC, Exec);
    SchedRegister(RUN_TASK_BLOCKS);
    SchedRegisterTask(RUN_FINISH, RunFinish);
}