view include/TaskManager/CellScheduler.h @ 134:92fcce4330f3

CreateSpan で、三角形を二つに割る時、 元々x軸に水平な辺を持っていると、辺に対して half_triangle をかけてしまい 暴走するので、その応急処置。詳しくは CreateSpan::half_triangle
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Thu, 27 Nov 2008 16:10:55 +0900
parents 5c194c71eca8
children 72dcf908ec52
line wrap: on
line source

#ifndef INCLUDED_CELL_SCHEDULER
#define INCLUDED_CELL_SCHEDULER

#ifndef INCLUDED_BASE_H_
#  include "base.h"
#endif

#ifndef INCLUDED_SCHEDULER
#  include "Scheduler.h"
#endif

class CellScheduler : public Scheduler {
public:
    BASE_NEW_DELETE(CellScheduler);

    int id;

    void init_impl(void);

    void *allocate(int size);
    void mainMem_alloc(int id, int size);
    void mainMem_wait(void);

private:
    int mainMemNum;
};

#endif