view example/renew_task/spe/Renew3.cc @ 201:9484318b3e8f draft

add SceneGraphIterator
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Mon, 26 Jan 2009 16:46:59 +0900
parents 6694da357750
children 768452fab95e cfd20d609ace
line wrap: on
line source

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

/* ¤³¤ì¤Ïɬ¿Ü */
SchedDefineTask(Renew3);

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

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

    profile->ProfStart();

    return 0;
}