view example/Bulk/ppe/task_init.cc @ 757:5238f3e854fc

Test/create_task , create SPE task from application.
author hiroki
date Fri, 29 Jan 2010 14:34:30 +0900
parents dbe137505f2e
children 458a1ad91427
line wrap: on
line source

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

/* 必ずこの位置に書いて */
SchedExternTask(Twice);

/**
 * この関数は ../spe/spe-main と違って
 * 自分で呼び出せばいい関数なので
 * 好きな関数名でおk (SchedRegisterTask は必須)
 */

void
task_init(void)
{
  SchedRegisterTask(TWICE_TASK, Twice);
}