mos_proc.h

来自「用VC编写的一个微型操作系统」· C头文件 代码 · 共 44 行

H
44
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?