view TaskManager/kernel/ppe/TaskLog.h @ 1531:4443d59a8210 draft

SDL.h in main.cc
author yuhi@cr.ie.u-ryukyu.ac.jp
date Fri, 07 Dec 2012 15:46:27 +0900
parents 840dee241530
children
line wrap: on
line source

#ifndef INCLUDED_TASKLOG
#define INCLUDED_TASKLOG

#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++;
        create_time = 0;
        execute_time = 0;
        finish_time = 0;
    }

    void set_cmd(int _cmd) {
        cmd = _cmd;
    }


private:
    // Unique id


};

#endif