view TaskManager/kernel/ppe/TaskLog.h @ 1465:fc5b23108608 draft

TaskList on going...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 15 Jul 2012 09:56:54 +0900
parents 0ce6c6880b4b
children 840dee241530
line wrap: on
line source

#ifndef INCLUDED_TASKLOG
#define INCLUDED_TASKLOG

#include "HTask.h"
#include "QueueInfo.h"

struct waitTask {
    int task_id;
    int cmd;

    waitTask *next;
    waitTask *prev;
    waitTask *waiter;
};

static int task_id;

class TaskLog {
public:

    /* variables */
    int mtask_id;
    int cmd;
    QueueInfo<waitTask> wait_for_list;
    unsigned long long create_time;
    unsigned long long execute_time;
    unsigned long long finish_time;

    TaskLog *next;
    TaskLog *prev;
    TaskLog *waiter;

    /* constructor */
    TaskLog() {
        mtask_id = task_id;
        task_id++;
    }

private:
    // Unique id

};

#endif