view example/renew_task/spe/Renew2.cc @ 400:00fe05184a02

Fix examples.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 21 Sep 2009 18:47:06 +0900
parents b89ba1d96fff
children 44c0bce54dcf
line wrap: on
line source

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

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

int
Renew2::run(void *rbuf, void *wbuf)
{
    SpeProfile *profile = (SpeProfile*) global_get(0);
    profile->ProfStop();
    profile->ProfPrint();

    printf("[SPE] ** running Renew2\n");

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

    profile->ProfStart();

    return 0;
}