view example/renew_task/spe/Renew1.cc @ 467:44c0bce54dcf

fix all examples. test_render is not working now.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 01 Oct 2009 19:25:25 +0900
parents b89ba1d96fff
children 63741e2dc6cb
line wrap: on
line source

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

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

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

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

    return 0;
}