view example/renew_task/spe/Renew1.cc @ 354:cfd20d609ace draft

add example/get_segment and change spe/DrawSpan.cpp
author koba
date Wed, 15 Jul 2009 17:39:51 +0900
parents 6694da357750
children 5b995810b86a
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;
}