view example/renew_task/ppe/Renew2.cc @ 298:768452fab95e draft

from EUC to UTF-8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 15:17:41 +0900
parents 6694da357750
children 364abe879376
line wrap: on
line source

#include <stdio.h>
#include "Renew2.h"
#include "Func.h"

/* これは必須 */
SchedDefineTask(Renew2);

int
Renew2::run(void *rbuf, void *wbuf)
{
    printf("[PPE] ** running Renew2\n");

    printf("[PPE] Create Task : Renew3\n");
    TaskPtr nextTask = smanager->create_task(RENEW3);
    smanager->wait_task(nextTask);
    
    printf("[PPE] ** finish  Renew2\n");
    printf("\n");

    return 0;
}