⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mos_proc.h

📁 用VC编写的一个微型操作系统
💻 H
字号:
// Mos_proc.h: interface for the CMos_proc class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MOS_PROC_H__09A69E0A_B8CF_4163_BEC2_5007B5E4B5B8__INCLUDED_)
#define AFX_MOS_PROC_H__09A69E0A_B8CF_4163_BEC2_5007B5E4B5B8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "VCS.h"
#include "PCB.h"
#include "Mos_stor.h"
#include "Mos_UI.h"	// Added by ClassView
const int IORESTKB = 1;
const int IORESTPRT = 2;
const int IORESTDSK = 3;
const int PCBFULL = 4;
const int JCBFULL = 5;
const int OUTNULL = 6;
const int MEMFULL = 7;
const int DSKFULL = 8;
const int KBEND = 9;
const int JCBNULL = 10;
const int OK = 0;
const int ERR = 1;

class CMos_proc  
{
public:
	CMos_proc();
	virtual ~CMos_proc();
	pcbtype* GetQueueHead(pcbtype* &queuehead,pcbtype* &queuetail,int ID=0);
	void halt(int e);
	void rearrange(pcbtype* &p,pcbtype* &head,pcbtype* &tail,int tag,int ID=0);
	void sleep(int reason);
	void wakeup(int reason,int chno=0);
	void creat(pcbtype *p,jcbtype *pJ);
private:
	CMos_UI m_UI;
};

#endif // !defined(AFX_MOS_PROC_H__09A69E0A_B8CF_4163_BEC2_5007B5E4B5B8__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -