view TaskManager/kernel/ppe/HTask.cc @ 242:23e76c5369b7 draft

dma_wait
author e065746@localhost.localdomain
date Sun, 31 May 2009 15:55:00 +0900 (2009-05-31)
parents 028ffc9c0375
children da8edd0735f2 cfd20d609ace
line wrap: on
line source
#include "HTask.h"
#include "ListData.h"
#include "TaskManagerImpl.h"


/**
 * manager->set_task_depend(task1, task2); // task2 �� task1 �ν�λ���Ԥ�
 *
 * �äƤ����
 *
 * task2->set_depend(task1);
 *
 * �äƤ�ä��ۤ����狼��䤹����͡�Ū���ä��礤��
 * ���Τ褦��API����ޤ���
 */
void
HTask::spawn(void)
{
    mimpl->spawn_task(this);
}

void
HTask::set_depend(HTaskPtr master)
{
    mimpl->set_task_depend(master, this);
}

void
HTask::set_cpu(CPU_TYPE type)
{
    mimpl->set_task_cpu(this, type);
}

void
HTask::set_post(void (*func)(void *), void *arg)
{
    this->post_func = func;
    this->post_arg = arg;
}