view TaskManager/Test/test_render/show_time.cpp @ 362:a64a6c34868f

vacuum -sg 15
author e065746@localhost.localdomain
date Fri, 17 Jul 2009 23:02:07 +0900
parents 7a42d46cc54e
children a4f690f44842
line wrap: on
line source

#include <stdio.h>
#include "TaskManager.h"
#include "Func.h"

void
show_time()
{
    HTaskPtr show;
    HTaskPtr pre_show;
    /*
    show = manager->create_task(SHOW_TIME);
    show->set_cpu(SPE_0);
    show->spawn();
    printf("testですよ\n");
    */

    pre_show = manager->create_task(SHOW_TIME);
    pre_show->set_cpu((CPU_TYPE)((int)SPE_0));    
    pre_show->spawn();

    for (int i = 1; i < 6; i++) {        
	show = manager->create_task(SHOW_TIME);
	show->set_cpu((CPU_TYPE)((int)SPE_0 + i));
	show->wait_for(pre_show);
	show->spawn();
	pre_show = show;
    }

}