Mercurial > hg > Members > kono > Cerium
view example/renew_task/main.cc @ 451:95dbf6bd8cd9
tag fixed... test_nogl move
author | kazz@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 22:44:37 +0900 |
parents | 00fe05184a02 |
children | df499063ccda |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "TaskManager.h" #include "Func.h" extern void task_init(); const char *usr_help_str = "Usage: ./renew_task"; static int init(int argc, char **argv) { return 0; } static void renew_init(TaskManager *manager) { HTask *renew; printf("[PPE] Create Task : RenewStart\n\n"); renew = manager->create_task(RENEW_START); renew->set_cpu(SPE_ANY); // add Active Queue renew->spawn(); } int TMmain(TaskManager *manager, int argc, char *argv[]) { if (init(argc, argv) < 0) { return -1; } // Task Register // ppe/task_init.cc task_init(); printf("[PPE] Program Start\n\n"); renew_init(manager); return 0; }