view example/renew_task/spe/Renew1.cc @ 310:c59d8927c4d1

remove smanager
author e065746@localhost.localdomain
date Mon, 08 Jun 2009 20:31:29 +0900
parents 58fd16298954
children b89ba1d96fff
line wrap: on
line source

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

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

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

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

    return 0;
}