view TaskManager/Fifo/FifoTaskManagerImpl.h @ 1310:26c155523861 draft

add start_profile
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Thu, 15 Dec 2011 16:48:55 +0900
parents 424c1f16e704
children db5c022d871c af2adce9752e
line wrap: on
line source

#ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL
#define INCLUDED_FIFO_TASK_MANAGER_IMPL

#include "TaskManagerImpl.h"
#include "MainScheduler.h"
#include "Scheduler.h"
#include "CpuThreads.h"

class FifoTaskManagerImpl : public TaskManagerImpl {
public:
    /* constructor */
    FifoTaskManagerImpl(int num) : TaskManagerImpl(num) {}
    ~FifoTaskManagerImpl(void);

    /* variables */
    int machineNum;
    QueueInfo<TaskList> *taskListInfo;  
    QueueInfo<TaskList> *ppeTaskList;  // running task

    MailManager *mailManager;
    MainScheduler *mainScheduler;

    /* functions */
    // call by system
    void init(int spuIdle, int useRefDma);
    void init(MainScheduler*, TaskManagerImpl*, int);
    void poll();  // called from CellTaskManagerImpl
    void poll1();  // single CPU run called from CellTaskManagerImpl
    void run();
    void show_profile();
    void start_profile();
    void polling();


    void mail_check();

    void set_runTaskList(QueueInfo<HTask>* activeTaskQueue);
    //void set_runTaskList();
    void sendTaskList();

    void print_arch();

    // call by user
private:
    void set_runTaskList1(QueueInfo<HTask>* activeTaskQueue);

};


#endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */