view include/TaskManager/HTaskInfo.h @ 311:b09784a9cb09

add smanager interface for test_nogl
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Jun 2009 22:35:44 +0900
parents 7075842aa155
children
line wrap: on
line source

#ifndef INCLUDED_HTASK_INFO
#define INCLUDED_HTASK_INFO

#include "HTask.h"

class HTaskInfo {
public:
    /* constructor */
    HTaskInfo(void);
    virtual ~HTaskInfo(void);

    /* functions */
    int init(int num);
    HTaskPtr create(int cmd);
    void free(HTaskPtr q);
    virtual int extend_pool(int num);

protected:
    /* variables */
    HTaskPtr htaskPool;
    HTaskPtr freeHTask;

    /* functions */
    void destroy(void);
    
private:
};

#endif