Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/memory/MemList.h @ 369:03ae2929c931
change TaskManager.cc
author | aaa |
---|---|
date | Tue, 28 Jul 2009 19:42:59 +0900 |
parents | 126f90e8582c |
children | 4435c9990988 |
line wrap: on
line source
#ifndef MEMLIST #define MEMLIST #include "MemorySegment.h" class MemList { public: MemorySegment* first; MemorySegment* last; // TaskManager 側で create する //MemList* createMemList(uint32 size, uint32 count); MemList(MemorySegment* ms) { first = last = ms; ms->next = ms; ms->prev = ms; } void addFirst(MemorySegment* e); void addLast(MemorySegment* e); MemorySegment* getFirst(); MemorySegment* getLast(); int remove(MemorySegment* e); void moveToFirst(MemorySegment* e); // or use(); }; #endif