TD3:I5 Implement PageProvide, untested for now
This commit is contained in:
parent
f3fe45a1de
commit
469c62ee82
5 changed files with 65 additions and 2 deletions
19
code/userprog/pageprovider.h
Normal file
19
code/userprog/pageprovider.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef PAGEPROVIDER_H
|
||||
#define PAGEPROVIDER_H
|
||||
#ifdef CHANGED
|
||||
|
||||
#include "bitmap.h"
|
||||
|
||||
class PageProvider {
|
||||
public:
|
||||
PageProvider(int n);
|
||||
~PageProvider();
|
||||
int GetEmptyPage();
|
||||
void ReleasePage(int n);
|
||||
int NumAvailPage();
|
||||
BitMap* page;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // PAGEPROVIDER_H
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue