view example/renew_task/spe/Renew2.cc @ 298:58fd16298954

from EUC to UTF-8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 15:17:41 +0900
parents 4f5c64e713c7
children c59d8927c4d1
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*)smanager->global_get(0);
    profile->ProfStop();
    profile->ProfPrint();

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

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

    profile->ProfStart();

    return 0;
}